1

Affiche le domaine des attributions URL

This commit is contained in:
2026-03-23 23:24:13 +01:00
parent 73f3b58003
commit 8b6e69a025
6 changed files with 31 additions and 5 deletions

View File

@@ -23,7 +23,8 @@
{{- if or $data.attribution $data.prompt -}}
<div class="figure-media-meta-extra">
{{- with $data.attribution -}}
<p class="figure-attribution cover-attribution"><strong>Attribution :</strong> <span>{{ . | markdownify }}</span></p>
{{- $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>
{{- end -}}
{{- with $data.prompt -}}
<details>