diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-16 00:33:49 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-16 00:33:49 +0200 |
commit | c78d7caf5b4986cf5d3b9673d4ac67fbaf97261e (patch) | |
tree | b16d6e4d3f9dac57af39e535bff973a427026045 /layouts | |
parent | 30b5defb5896f54f986af0efacce5e17d6e29597 (diff) | |
download | hugo-minimalist-theme-c78d7caf5b4986cf5d3b9673d4ac67fbaf97261e.tar.gz hugo-minimalist-theme-c78d7caf5b4986cf5d3b9673d4ac67fbaf97261e.tar.bz2 hugo-minimalist-theme-c78d7caf5b4986cf5d3b9673d4ac67fbaf97261e.zip |
license cleanup
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 74 |
1 files changed, 46 insertions, 28 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 14b6cd1..7de0a6b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,36 +1,54 @@ <footer class="bg-black w-100 pa3 tc near-white"> + {{ 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 }} -{{ if in (slice "by" "by-nd" "by-sa" "by-nc" "by-nc-nd" "by-nc-sa") .Site.Params.license }} -<a rel="license" href="http://creativecommons.org/licenses/{{ .Site.Params.license }}/4.0/"> -<img alt="Creative Commons License" src="https://i.creativecommons.org/l/{{ .Site.Params.license }}/4.0/88x31.png"/> -</a><br/> -<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">{{ .Site.Title }}</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="http://creativecommons.org/licenses/{{ .Site.Params.license }}/4.0/"> -Creative Commons -{{ with .Site.Params.license }} - Attribution{{ if in . "by-nc" }}-NonCommercial{{ end }}{{ if in . "-nd" }}-NoDerivatives - {{ else if in . "-sa" }}-ShareAlike + <a rel="license" href="{{ $href }}"> + <img + alt="Creative Commons License" + src="https://i.creativecommons.org/l/{{ .Site.Params.license }}/4.0/88x31.png" + /> + </a> + <br /> + <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 }} -{{ end }} -4.0 International License</a> -{{ else }} -Copyright © {{ now.Format "2006" }} {{ .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 © + {{ now.Format "2006" }} + {{ .Site.Author.name }} + {{ end }} -{{ with .Site.GetPage "footer.md" }} + {{ with .Site.GetPage "footer.md" }} {{ .Content }} -{{ end }} + {{ end }} </footer> |