vmems-website/layouts/shortcodes/wikipedia_link.html

9 lines
430 B
HTML
Raw Permalink Normal View History

2023-10-28 08:20:52 +00:00
{{ $link := printf "https://%s.wikipedia.org/wiki/%s" (.Get "lang") (.Get "name") }}
<a href="{{ $link }}" class="btn wikipedia-btn" title="Voir l'article &quot;{{.Get "name"}}&quot; sur Wikipedia">
{{ partial "helpers/svg" (dict "path" "icons/wikipedia_globe" "class" "btn__icon") }}
<div>Voir l'article sur Wikipedia
{{ partial "helpers/svg" (dict "path" "icons/external" "class" "icon_inline") }}
</div>
</a>