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

footer.html « footer « partials « layouts - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bab0909be3ac048aa169f4918118891c79863a55 (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
{{ if $.Param "enableFooter" }}
<div class="bot">
  <footer class="footer">
    <div class="divider">
      <div class="lmr">
        {{ with .Params.footer }}
          <div class="footer__section--wrapper">
            {{ range .sections }}
              <div class="footer__section">
                <div class="footer__section--title">
                  {{ .title }}
                </div>
                <ul>
                  {{ range .links }}
                    <a href="{{ .link }}" class="footer__section--link" target="_blank" rel="noreferrer">
                      {{ .title }}
                    </a>
                  {{ end }}
                </ul>
              </div>
            {{ end }}
          </div>
          {{ with .contents }}
            <div class="footer__contents {{ if .applySinglePageCss }}single__contents{{ end }}">
              {{ .markdown | markdownify }}
            </div>
          {{ end }}
        {{ else }}
          <p class="caption">
            {{ with $.Site.Copyright }}{{ replace . "{year}" now.Year | markdownify }}{{ end }}
          </p>
          {{ if $.Param "showPoweredBy" }}
              <p class="caption">Powered by <a href="https://gohugo.io/" rel="noreferrer">Hugo</a> and the <a href="https://github.com/zzossig/hugo-theme-zdoc" rel="noreferrer">zDoc theme</a></p>
          {{ end }}
        {{ end }}
      </div>
    </div>
  </footer>
</div>
{{ end }}