diff options
author | Oscar Najera <hi@oscarnajera.com> | 2024-06-02 13:15:59 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-06-02 13:15:59 +0200 |
commit | eb728994b8578661221d9c80b213a83fcf2f300f (patch) | |
tree | a65524ce156d4c2a2de3369a1dc8400faa1d86ee | |
parent | dd855082221faf4ec254165a4453355485ed6ac1 (diff) | |
download | hugo-minimalist-theme-eb728994b8578661221d9c80b213a83fcf2f300f.tar.gz hugo-minimalist-theme-eb728994b8578661221d9c80b213a83fcf2f300f.tar.bz2 hugo-minimalist-theme-eb728994b8578661221d9c80b213a83fcf2f300f.zip |
creative commons W3C compliant try
-rw-r--r-- | layouts/partials/footer.html | 96 |
1 files changed, 52 insertions, 44 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index cc44278..a0e4472 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,10 @@ <footer class="bg-black w-100 pa3 near-white"> <div class="mw7 center"> {{ if in .Site.Params.mainSections .Section }} - <a href="/{{ .Section }}/index.xml" class="link color-inherit db tc mv2"> + <a + href="/{{ .Section }}/index.xml" + class="link color-inherit db tc mv2 dim" + > Follow {{ .Section }} updates via RSS feed <i class="fa-solid fa-rss"></i> </a> @@ -26,53 +29,58 @@ <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 }} + <div + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dct="http://purl.org/dc/terms/" + > + <span property="dct:title">The content in this website</span> + by + {{ with .Site.Author.homepage }} + <a + rel="cc:attributionURL dct:creator" + property="cc:attributionName" + href="{{ . }}" + class="link dim" + > + {{ $.Site.Author.name }} + </a> + {{ else }} + {{ $.Site.Author.name }} {{ end }} - </a> - <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title"> - The content in this website - </span> - by - {{ with .Site.Author.homepage }} + + is licensed under a <a - xmlns:cc="http://creativecommons.org/ns#" - href="{{ . }}" - property="cc:attributionName" - rel="cc:attributionURL" + target="_blank" + rel="license noopener noreferrer" + href="{{ $href }}" + class="db dim link" > - {{ $.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 + 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> + 4.0 International License + <span class="db ma2"> + <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 }} + </span> + </a> + </div> {{ else }} Copyright © {{ now.Format "2006" }} |