diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-09-07 15:12:57 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-09-07 15:12:57 +0200 |
commit | fb88b9224a5be3617736fc67eb2a56515412c25b (patch) | |
tree | 901b5d7a947e1f7210980ada72c9dcf8eba60e5a /layouts | |
parent | 750727091bdc7723c5e780bb9872c9b538314c3a (diff) | |
download | hugo-minimalist-theme-fb88b9224a5be3617736fc67eb2a56515412c25b.tar.gz hugo-minimalist-theme-fb88b9224a5be3617736fc67eb2a56515412c25b.tar.bz2 hugo-minimalist-theme-fb88b9224a5be3617736fc67eb2a56515412c25b.zip |
footer with creative commons license
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 77a7276..e0d47b1 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,34 @@ <footer class="bg-black w-100 pa3 tc near-white"> - {{ with .Site.GetPage "footer.md" }} - {{ .Content }} + + +{{ 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 {{ end }} +{{ end }} + +4.0 International License</a> +{{ end }} + +{{ with .Site.GetPage "footer.md" }} + {{ .Content }} +{{ end }} </footer> |