diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-16 14:54:31 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-16 14:58:26 +0200 |
commit | b90aa5cc74801c5b70f591b73b3de7ec4ad6362a (patch) | |
tree | fe9d463d2d465745ef4a08ab8b22eff3b3066acd /layouts/partials | |
parent | 036cb3742a267d225bdfe9bc1b9e7046e7198438 (diff) | |
download | hugo-minimalist-theme-b90aa5cc74801c5b70f591b73b3de7ec4ad6362a.tar.gz hugo-minimalist-theme-b90aa5cc74801c5b70f591b73b3de7ec4ad6362a.tar.bz2 hugo-minimalist-theme-b90aa5cc74801c5b70f591b73b3de7ec4ad6362a.zip |
style footer
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 94 |
1 files changed, 48 insertions, 46 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7de0a6b..38f7069 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,54 +1,56 @@ -<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 }} +<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" - 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 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> - {{ else }} - {{ $.Site.Author.name }} - {{ end }} + <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 + 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 }} - {{ end }} - 4.0 International License - </a> - {{ else }} - Copyright © - {{ now.Format "2006" }} - {{ .Site.Author.name }} - {{ end }} + 4.0 International License + </a> + {{ else }} + Copyright © + {{ now.Format "2006" }} + {{ .Site.Author.name }} + {{ end }} - {{ with .Site.GetPage "footer.md" }} - {{ .Content }} - {{ end }} + {{ with .Site.GetPage "footer.md" }} + {{ .Content }} + {{ end }} + </div> </footer> |