1

Sécuriser et documenter les liens morts

Rend les liens supprimés non cliquables, améliore le rapport des liens morts et accélère la génération du site.

Closes #2
Closes #3
Closes #4
This commit is contained in:
2026-04-02 22:23:16 +02:00
parent 0e4e8cd076
commit fe8037bb73
40 changed files with 423 additions and 112 deletions

View File

@@ -32,7 +32,7 @@
{{- with $attribution -}}
{{- $figureAttribution := partial "media/parse-attribution.html" . -}}
<div class="figure-media-meta-extra">
<p class="figure-attribution cover-attribution"><strong>Attribution :</strong> <span>{{- if index $figureAttribution "isURL" -}}<a href="{{ index $figureAttribution "url" }}" class="link-external" title="Lien externe" rel="noreferrer noopener">{{ index $figureAttribution "label" }}</a>{{- else -}}{{ . | markdownify }}{{- end -}}</span></p>
<p class="figure-attribution cover-attribution"><strong>Attribution :</strong> <span>{{- if index $figureAttribution "isURL" -}}{{ partial "render/link.html" (dict "Destination" (index $figureAttribution "url") "Page" $.Page "Text" (index $figureAttribution "label")) }}{{- else -}}{{ . | markdownify }}{{- end -}}</span></p>
</div>
{{- end -}}
</figcaption>

View File

@@ -15,7 +15,7 @@
{{- with $data.description -}}<p>{{ . | markdownify }}</p>{{- end -}}
{{- with $data.attribution -}}
{{- $attribution := partial "media/parse-attribution.html" . -}}
<p><strong>Attribution :</strong> <em>{{- if index $attribution "isURL" -}}<a href="{{ index $attribution "url" }}" class="link-external" title="Lien externe" rel="noreferrer noopener">{{ index $attribution "label" }}</a>{{- else -}}{{ . | markdownify }}{{- end -}}</em></p>
<p><strong>Attribution :</strong> <em>{{- if index $attribution "isURL" -}}{{ partial "render/link.html" (dict "Destination" (index $attribution "url") "Page" $.Page "Text" (index $attribution "label")) }}{{- else -}}{{ . | markdownify }}{{- end -}}</em></p>
{{- end -}}
</figcaption>
{{- end -}}

View File

@@ -24,7 +24,7 @@
<div class="figure-media-meta-extra">
{{- with $data.attribution -}}
{{- $attribution := partial "media/parse-attribution.html" . -}}
<p class="figure-attribution cover-attribution"><strong>Attribution :</strong> <span>{{- if index $attribution "isURL" -}}<a href="{{ index $attribution "url" }}" class="link-external" title="Lien externe" rel="noreferrer noopener">{{ index $attribution "label" }}</a>{{- else -}}{{ . | markdownify }}{{- end -}}</span></p>
<p class="figure-attribution cover-attribution"><strong>Attribution :</strong> <span>{{- if index $attribution "isURL" -}}{{ partial "render/link.html" (dict "Destination" (index $attribution "url") "Page" $.Page "Text" (index $attribution "label")) }}{{- else -}}{{ . | markdownify }}{{- end -}}</span></p>
{{- end -}}
{{- with $data.prompt -}}
<details>