aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/footer.html
blob: 38f70697054c2dd4b1552660b41ff078293bb0eb (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
<footer class="bg-black w-100 pa3 near-white">
  <div class="mw7 center">
    {{ 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 }}


      <a rel="license" href="{{ $href }}">
        <img
          alt="Creative Commons License"
          class="db center ma2"
          src="https://i.creativecommons.org/l/{{ .Site.Params.license }}/4.0/88x31.png"
        />
      </a>
      <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">
        This website
      </span>
      by
      {{ with .Site.Author.homepage }}
        <a
          xmlns:cc="http://creativecommons.org/ns#"
          href="{{ . }}"
          property="cc:attributionName"
          rel="cc:attributionURL"
        >
          {{ $.Site.Author.name }}
        </a>
      {{ else }}
        {{ $.Site.Author.name }}
      {{ end }}

      is licensed under a
      <a rel="license" href="{{ $href }}">
        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
      </a>
    {{ else }}
      Copyright &copy;
      {{ now.Format "2006" }}
      {{ .Site.Author.name }}
    {{ end }}

    {{ with .Site.GetPage "footer.md" }}
      {{ .Content }}
    {{ end }}
  </div>
</footer>