Don't syndicate email

This commit is contained in:
JP Hastings-Spital 2023-08-02 14:11:03 +01:00
parent 50d34fc7ae
commit c245ba44a0

View file

@ -2,7 +2,7 @@
{{ if eq .type "" }}
{{ $title = "See elsewhere" }}
{{ end }}
<a rel="syndication" class="u-syndication resp-syndication__link" href="{{ .link }}" target="_blank" rel="noopener" title="{{ $title }}">
<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">
{{ partial "svg.html" (dict "name" .type) }}