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

footer.html « partials « layouts - github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 63c4470abcecbfbf74ae882f04ca3b28d450f450 (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
{{ if or (and .IsHome .Site.Params.displayFooterInHome) (and (not .IsHome) (.Site.Params.displayFooter | default .Site.Params.enableFooter)) }}
    <footer id="footer" class="footer">
        <div class="footer-inner">
            <div class="site-info">
              {{- if .Site.Params.displayCopyrightSymbol -}}
                  ©&nbsp;
              {{- end -}}

              {{- if .Site.Params.displaySiteCreatedYear -}}
                  {{- dateFormat "2006" (time .Site.Params.siteCreatedTime) -}}–
              {{- end -}}
              {{- now.Format "2006" -}}

              {{- with .Site.Params.iconBetweenYearAndAuthor -}}
                  &nbsp;{{- partial "utils/icon.html" (dict "$" $ "name" . "class" "footer-icon") -}}&nbsp;
              {{- else -}}
                  &nbsp;
              {{- end -}}

              {{- .Site.Author.name -}}
            </div>

            {{- if .Site.Params.displayPoweredBy }}
                {{- $raw := `Powered by [Hugo](https://github.com/gohugoio/hugo) | Theme is [MemE](https://github.com/reuixiy/hugo-theme-meme)` -}}
                <div class="powered-by">{{ partial "utils/markdownify.html" (dict "$" $ "raw" $raw "isContent" false) }}</div>
            {{- end }}

            {{- if .Site.Params.displaySiteCopyright }}
                {{- $raw := .Site.Copyright -}}
                <div class="site-copyright">{{ partial "utils/markdownify.html" (dict "$" $ "raw" $raw "isContent" false) }}</div>
            {{- end }}

            {{- with .Site.Params.customFooter }}
                {{- $raw := . -}}
                <div class="custom-footer">{{ partial "utils/markdownify.html" (dict "$" $ "raw" $raw "isContent" false) }}</div>
            {{- end }}

            {{- if and .Site.Params.displayBusuanziSiteUVAndPV (eq hugo.Environment "production") }}
                <div class="busuanzi-site-uv-and-pv">
                    <span id="busuanzi_container_site_uv">
                        {{- with .Site.Params.busuanziSiteUVText -}}
                            {{- . -}}
                            &nbsp;
                        {{- end -}}

                        {{- with .Site.Params.busuanziSiteUVIcon -}}
                            {{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.busuanziSiteUVIcon "class" "busuanzi-site-uv") -}}
                            &nbsp;
                        {{- end -}}

                        <!-- Avoid extra spaces -->
                        {{- print `<span id="busuanzi_value_site_uv"></span>` | safeHTML -}}
                    </span>

                    {{- print "&nbsp;|&nbsp;" | safeHTML -}}

                    <span id="busuanzi_container_site_pv">
                        {{- with .Site.Params.busuanziSitePVText -}}
                            {{- . -}}
                            &nbsp;
                        {{- end -}}

                        {{- with .Site.Params.busuanziSitePVIcon -}}
                            {{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.busuanziSitePVIcon "class" "busuanzi-site-pv") -}}
                            &nbsp;
                        {{- end -}}

                        <!-- Avoid extra spaces -->
                        {{- print `<span id="busuanzi_value_site_pv"></span>` | safeHTML -}}
                    </span>
                </div>
            {{- end }}

            {{ partial "components/socials.html" . }}

            {{ partial "custom/footer.html" . }}
        </div>
    </footer>
{{ end }}