Affiche le domaine des attributions URL
This commit is contained in:
@@ -13,7 +13,10 @@
|
||||
<figcaption>
|
||||
{{- with $data.title -}}<p><strong>{{ . }}</strong></p>{{- end -}}
|
||||
{{- with $data.description -}}<p>{{ . | markdownify }}</p>{{- end -}}
|
||||
{{- with $data.attribution -}}<p><strong>Attribution :</strong> <em>{{ . | markdownify }}</em></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>
|
||||
{{- end -}}
|
||||
</figcaption>
|
||||
{{- end -}}
|
||||
</figure>
|
||||
|
||||
Reference in New Issue
Block a user