aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/footer.html
blob: a0e4472edc11034af210936a663f4edec1f3db9b (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
<footer class="bg-black w-100 pa3 near-white">
  <div class="mw7 center">
    {{ if in .Site.Params.mainSections .Section }}
      <a
        href="/{{ .Section }}/index.xml"
        class="link color-inherit db tc mv2 dim"
      >
        Follow {{ .Section }} updates via RSS feed
        <i class="fa-solid fa-rss"></i>
      </a>
    {{ end }}


    <ul class="ma0 pa0 list overflow-hidden avenir tc bb b--white-40">
      {{ range .Site.Menus.footer }}
        <li class="dib dim">
          <a class="db f6 pa2 link near-white" href="{{ .URL }}"
            >{{ .Name | safeHTML }}
          </a>
        </li>
      {{ end }}
    </ul>

    {{ with .Site.GetPage "footer.md" }}
      {{ .Content }}
    {{ end }}


    <div class="tc">
      {{ if in (slice "by" "by-nd" "by-sa" "by-nc" "by-nc-nd" "by-nc-sa") .Site.Params.license }}
        {{ $href := printf "http://creativecommons.org/licenses/%s/4.0/" .Site.Params.license }}
        <div
          xmlns:cc="http://creativecommons.org/ns#"
          xmlns:dct="http://purl.org/dc/terms/"
        >
          <span property="dct:title">The content in this website</span>
          by
          {{ with .Site.Author.homepage }}
            <a
              rel="cc:attributionURL dct:creator"
              property="cc:attributionName"
              href="{{ . }}"
              class="link dim"
            >
              {{ $.Site.Author.name }}
            </a>
          {{ else }}
            {{ $.Site.Author.name }}
          {{ end }}

          is licensed under a
          <a
            target="_blank"
            rel="license noopener noreferrer"
            href="{{ $href }}"
            class="db dim link"
          >
            Creative Commons
            {{ with .Site.Params.license }}
              Attribution{{- if in . "by-nc" -}}
                -NonCommercial
              {{- end -}}{{- if in . "-nd" -}}
                -NoDerivatives
              {{- else if in . "-sa" -}}
                -ShareAlike
              {{- end -}}
            {{ end }}
            4.0 International License
            <span class="db ma2">
              <i class="f2 fab fa-creative-commons"></i>
              <i class="f2 fab fa-creative-commons-by"></i>
              {{ with .Site.Params.license }}
                {{ if in . "by-nc" }}
                  <i class="f2 fab fa-creative-commons-nc"></i>
                {{ end }}{{ if in . "-nd" }}
                  <i class="f2 fab fa-creative-commons-nd"></i>
                {{ else if in . "-sa" }}
                  <i class="f2 fab fa-creative-commons-sa"></i>
                {{ end }}
              {{ end }}
            </span>
          </a>
        </div>
      {{ else }}
        Copyright &copy;
        {{ now.Format "2006" }}
        {{ .Site.Author.name }}
      {{ end }}
    </div>

    <div class="tc mv2">
      Made in anger with
      <a
        href="https://git.oscarnajera.com/hugo-minimalist-theme/about/"
        class="link silver hover-near-white"
      >
        hugo-minimalist
      </a>
      theme.
    </div>
  </div>
</footer>