www.byjp.me/layouts/partials/syndication-ref.html
2024-10-11 10:17:16 +01:00

11 lines
No EOL
549 B
HTML

{{$title := delimit (slice "Respond via" ( .type | strings.FirstUpper)) " " }}
{{ if eq .type "" }}
{{ $title = "See elsewhere" }}
{{ end }}
<a rel="syndication" class="{{ if ne .type "email" }}u-syndication {{ end }}resp-syndication__link" href="{{ .link }}" target="_blank" rel="noopener" title="{{ $title }}">
<div class="resp-syndication resp-syndication--small">
<div aria-hidden="true" class="resp-syndication__icon resp-syndication__icon--solid">
{{ partialCached "svg.html" (dict "name" .type) .type }}
</div>
</div>
</a>