Website-Redesign/layouts/partials/iconlink.html

20 lines
424 B
HTML
Raw Normal View History

<a
2021-10-31 15:05:54 -05:00
{{ if eq (lower .Identifier) "mastodon" }}
2021-10-20 12:33:38 -05:00
rel="me"
2021-12-21 02:25:48 -06:00
{{ else }}
rel="noreferrer"
2021-10-20 12:33:38 -05:00
{{ end }}
target="_blank"
class="nerdlink"
href="{{ .URL | safeURL }}">
{{ $icon := index site.Data.supported_icons (lower .Identifier) | safeHTML }}
{{ if $icon }}
{{ $icon | safeHTML }}
{{ else }}
{{ .Name }}
{{ end }}
<span>
{{ .Name }}
</span>
</a>