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

footer.html « partials « layouts - github.com/shaform/hugo-theme-den.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eb8757bdc71f12c7bb5b12e7800e43a4af6306a2 (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
<div class="footer gradient-2">
  <div class="container footer-container ">
    <div class="row">
      <div class="col-xs-4 col-sm-3 col-md-3 col-lg-3">
        <div class="footer-title">{{ i18n "sitemap" }}</div>
        <ul class="list-unstyled">
            {{ if .Site.Menus.sitemap }}
              {{ range .Site.Menus.sitemap }}
                <li><a href="{{ .URL | absLangURL | safeURL }}">{{ .Name }}</a></li>
              {{ end }}
            {{ else }}
              {{ with .Site.GetPage "taxonomyTerm" "/tags" }}
                <li><a href="{{ .Permalink }}">{{ i18n "tags" }}</a></li>
              {{ end }}
              {{ with .Site.GetPage "taxonomyTerm" "/categories" }}
                <li><a href="{{ .Permalink }}">{{ i18n "categories" }}</a></li>
              {{ end }}
            {{ end }}
            {{ with .Site.GetPage "home" }}
            {{ with .OutputFormats.Get "RSS" }}
            <li><a rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"><i class="fas fa-rss-square"></i> {{ i18n "rss_feed" }}</a></li>
            {{ end }}
            {{ end }}
        </ul>
      </div>
      <div class="col-xs-4 col-sm-3 col-md-3 col-lg-3">
        {{ if .Site.Menus.social }}
        <div class="footer-title">{{ i18n "social" }}</div>
        <ul class="list-unstyled">
          {{ range .Site.Menus.social }}
          <li><a href="{{ .URL | safeURL }}" rel="noopener" target="_blank">{{ .Name }}</a></li>
          {{ end }}
        </ul>
        {{ end }}
      </div>
      <div class="col-xs-4 col-sm-3 col-md-3 col-lg-3">
        {{ if .Site.Menus.links }}
        <div class="footer-title">{{ i18n "links" }}</div>
        <ul class="list-unstyled">
          {{ range .Site.Menus.links }}
          <li><a href="{{ .URL | safeURL }}" rel="noopener" target="_blank">{{ .Name }}</a></li>
          {{ end }}
        </ul>
        {{ end }}
      </div> 
      <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
        <p class="pull-right text-right">
          <small><em>Proudly powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo</a></em></small><br/>
          <small><em>Theme - <a href="https://github.com/shaform/hugo-theme-den" rel="noopener" target="_blank">Den</a></em></small><br/>
          <small>
            {{ $current := now.Format "2006" -}}
            &copy; 
            {{ if or .Site.Copyright .Site.Author.name -}}
            {{if .Site.Copyright }}{{ .Site.Copyright | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}
            {{- end }}
            {{ if and .Site.Params.since (ne .Site.Params.since $current) }}
              {{ .Site.Params.since }} -
            {{ end }}
            {{- $current }}
          </small>
          {{ with .Site.Params.footerHTML }}
          <small><em>{{ . | safeHTML }}</em></small>
          {{ end }}
        </p>
      </div>
    </div>
  </div>
</div>