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

single.html « _default « layouts - github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a7792d0f686744ebeb70113517b3d2090d318ad5 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL }}
{{ $data := index .Site.Data .Site.Language.Lang }}
<article>
  <header class="article-title">
    <h1 class="text-primary">{{ .Title }}</h1>
  </header>
  <hr>
  <section>
    {{ .Content }}
  </section>
  <div class="clearfix">
    {{ if (isset .Params "noshowdate")  }}
    {{ else }}
      <div class="post-date">
        <span class="small">
          {{ i18n "postedOn" }}
          {{ .Date.Format ( i18n "dateTimeFormat" ) }}
        </span>
      </div>
    {{ end }}
    <div>
      {{ range .Params.tags }}
        <span class="post-tag small">
          <a href="{{ ($.Site.GetPage "taxonomy" ( print "/tags/" ( . ) ) ).Permalink }}">
            #{{ . }}
          </a>
        </span>
      {{ end }}
    </div>
  </div>
  <footer>
    {{ if and (isset $data "authors") (isset .Params "author") }}
      {{ $author := index $data.authors .Params.author }}
        <hr>
        <section class="author-info">
          <div class="author-avatar">
            {{ with $author.avatar }}
              <img alt="Author Avatar" src="{{ . }}" />
            {{ end }}
          </div>
          <div class="author-meta">
            {{ with $author.name }}
              <h2 class="author-name text-primary">{{ . }}</h2>
            {{ end }}
            {{ with $author.bio }}
              <div class="author-bio">{{ . }}</div>
            {{ end }}
            {{ with $author.contact }}
              <a class="btn btn-primary author-contact" href="{{ . }}">
                <div>
                  <i class="fa fa-envelope-o" aria-hidden="true"></i>
                  &nbsp;{{ i18n "contactMe" }}
                </div>
              </a>
            {{ end }}
          </div>
        </section>
      {{ end }}
    {{ if .Site.Params.UseCommento }}
      <hr>
      <h2 class="text-primary">Kommentare</h2>
      <div id="commento"></div>
      <script src="https://cdn.commento.io/js/commento.js"></script>
    {{ else if (isset .Site.Params "disqus") }}
      {{ with .Site.Params.disqus }}
        <hr>
        <div id="disqus_thread"></div>
        <script type="text/javascript">
          var disqus_shortname = '{{ . }}';
          (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
          })();
        </script>
        <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
      {{ end }}
    {{ end }}
   {{ if (isset .Params "nopagination")  }}
    {{ else }}
    <hr>
    <div class="pager-container">
      {{ with .PrevInSection }}
        <a class="btn btn-primary btn-older-posts" href="{{ .Permalink }}">
          <div>
            <span aria-hidden="true">&larr;</span> {{ i18n "olderPosts" }}
          </div>
        </a>
      {{ else }}
        <a class="btn btn-primary btn-older-posts disabled" href="#">
          <div>
            <span aria-hidden="true">&larr;</span> {{ i18n "olderPosts" }}
          </div>
        </a>
      {{ end }}
      {{ with .NextInSection }}
        <a class="btn btn-primary btn-newer-posts" href="{{ .Permalink }}">
          <div>
            {{ i18n "newerPosts" }} <span aria-hidden="true">&rarr;</span>
          </div>
        </a>
      {{ else }}
        <a class="btn btn-primary btn-newer-posts disabled" href="#">
          <div>
            {{ i18n "newerPosts" }} <span aria-hidden="true">&rarr;</span>
          </div>
        </a>
      {{ end }}
     {{ end }}    
    </div>
  </footer>
</article>
<hr>

{{ partial "footer.html" . }}