website/layouts/shortcodes/wikipedia_link.html
Matthieu Bessat fdbc1ec109 feat(geocaching): add initial page for 2023
feat(sliding_gallery): add horizontal scrolling gallery component
2023-09-15 14:59:48 +02:00

8 lines
430 B
HTML

{{ $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>