Welcome to mirror list, hosted at ThFree Co, Russian Federation.

single.html « _default « layouts - github.com/leonhe/hugo_eiio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2360a2cbe31fa79ff3dcce8a748e1ed8f6cb81d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{{ define "main"  }}
<div class="panel panel-default">
  <div class="panel-body">
      <article id='post' >
	<div class='title'> {{ .Title }} </div>
	  {{ if eq .Section "post" }}
	  <span class="text-muted"><ion-icon name="ios-calendar"></ion-icon>Posted by:&nbsp; <time tile="创建于" itemprop="dateCreated datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time> | 
	  <ion-icon name="ios-podium"></ion-icon>Word Count: {{ .WordCount }}&nbsp;&nbsp; | 
	  <ion-icon name="ios-time"></ion-icon> Reading Time: {{ .ReadingTime }} Minute&nbsp;&nbsp;</span>
{{ end }}
	  {{ .Content }}

	  {{ if eq .Section "post" }}
	  	  <div class="tags">	

	      {{ with .Params.categories }}
	    <p class="categories">
	      <ion-icon name="folder"></ion-icon>
	      {{ range . }}
{{ $namec := . }}
{{ $special_word := dict "#" "%23" }}
{{ range  $elem_key,$elem_val := $special_word }}
{{ $namec = replace $namec $elem_key $elem_val }}
{{ end }}
 
	      <a class="btn btn-default btn-xs text-capitalize" href="/categories/{{ $namec }}/"> {{ . }}</a>
	      {{ end }}
	    </p>
	    {{ end }}
	    {{ partial "post/tag/list" . }}
	    	  </div>
	    {{ end }}
		  {{ if .Site.Params.ShowNextAndPrePost }}
<nav>
  <ul class="pager">
 {{if .NextPage}}
    
    <li class="previous"><a href="{{.NextPage.Permalink}}"><span aria-hidden="true">&larr;</span>{{.NextPage.Title}}</a></li>
    {{ end }}

    {{if .PrevPage}}
    <li class="next">
      <a href="{{.PrevPage.Permalink}}">{{.PrevPage.Title}}<span aria-hidden="true">&rarr;</span></a>
    </li>
    	{{end}}
      </ul>
</nav>
{{ end }}
<script data-ad-client="ca-pub-0395730697845563"  async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block; text-align:center;margin-bottom: 20px;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-0395730697845563"
     data-ad-slot="6342580713"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
{{ if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }}
{{ end }}
{{ if .Site.Params.hasCommento }}
 <div id="commento"></div>
 <script src="https://cdn.commento.io/js/commento.js"></script>
{{ end }}
{{ if .Site.Params.graphcomment }}
<div id="graphcomment"></div>
<script type="text/javascript">

  /* - - - CONFIGURATION VARIABLES - - - */

  // make sure the id is yours
  window.gc_params = {
      graphcomment_id: {{ .Site.Params.graphcomment }},

    // if your website has a fixed header, indicate it's height in pixels
    fixed_header_height: 0,
  };

  /* - - - DON'T EDIT BELOW THIS LINE - - - */

  (function() {
    var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
    gc.src = 'https://graphcomment.com/js/integration.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
  })();
</script>
{{ end }}
     </div>
      </div></article>

{{ end }}