1

Ajouter des antipixels au footer global

Closes #11
This commit is contained in:
2026-04-05 15:07:57 +02:00
parent 67717fdb7b
commit a9125a45ea
3 changed files with 73 additions and 5 deletions

View File

@@ -1,6 +1,12 @@
{{- $site := .Site -}}
{{- $logoPath := $site.Params.logo | default "logo-large.png" -}}
{{- $logo := resources.GetMatch $logoPath -}}
{{- $htmlValidationURL := printf "https://validator.w3.org/nu/?doc=%s" (.Permalink | urlquery) -}}
{{- $cssValidationURL := printf "https://jigsaw.w3.org/css-validator/validator?uri=%s&profile=css3svg&usermedium=all&warning=0&lang=fr" (.Permalink | urlquery) -}}
{{- $rssValidationURL := "" -}}
{{- with $site.Home.OutputFormats.Get "RSS" -}}
{{- $rssValidationURL = printf "https://validator.w3.org/feed/check.cgi?url=%s" (.Permalink | urlquery) -}}
{{- end -}}
<footer>
<section aria-label="Informations du site">
{{- with $logo -}}
@@ -48,6 +54,13 @@
</li>
{{- end -}}
</ul>
<ul class="footer-antipixels" aria-label="Validité des standards du site">
<li><a class="footer-antipixel footer-antipixel-html" href="{{ $htmlValidationURL }}" title="Valider cette page HTML5" target="_blank" rel="noreferrer noopener">HTML5 OK</a></li>
<li><a class="footer-antipixel footer-antipixel-css" href="{{ $cssValidationURL }}" title="Valider le CSS utilisé par cette page" target="_blank" rel="noreferrer noopener">CSS3 OK</a></li>
{{- if ne $rssValidationURL "" -}}
<li><a class="footer-antipixel footer-antipixel-rss" href="{{ $rssValidationURL }}" title="Valider le flux RSS principal" target="_blank" rel="noreferrer noopener">RSS OK</a></li>
{{- end -}}
</ul>
{{- with .GitInfo -}}
<p>
Dernière modification de cette page :