diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-21 20:22:07 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-21 20:22:07 +0200 |
commit | ebf3f6bf9f66aeb0c00be30fd1930b7c3d256427 (patch) | |
tree | 57fecdb45691dc4c86e2d6fbb716b3bdcd2a42f7 /layouts/partials | |
parent | 6a583db0ac533d88f551fbe4d15a10f4b038da98 (diff) | |
download | hugo-minimalist-theme-ebf3f6bf9f66aeb0c00be30fd1930b7c3d256427.tar.gz hugo-minimalist-theme-ebf3f6bf9f66aeb0c00be30fd1930b7c3d256427.tar.bz2 hugo-minimalist-theme-ebf3f6bf9f66aeb0c00be30fd1930b7c3d256427.zip |
footer with font awesome icons
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 108 |
1 files changed, 64 insertions, 44 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 38f7069..e68d43a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,56 +1,76 @@ <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 }} + {{ with .Site.GetPage "footer.md" }} + {{ .Content }} + {{ end }} - <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" - > + <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 }} + + + <a class="link db ma2" rel="license" href="{{ $href }}"> + <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 }} + </a> + <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title"> + The content in 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 }}" class="db"> + 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 }} - {{ $.Site.Author.name }} + Copyright © + {{ now.Format "2006" }} + {{ .Site.Author.name }} {{ end }} + </div> - 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 + <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> - {{ else }} - Copyright © - {{ now.Format "2006" }} - {{ .Site.Author.name }} - {{ end }} - - {{ with .Site.GetPage "footer.md" }} - {{ .Content }} - {{ end }} + theme. + </div> </div> </footer> |