Website-Redesign/layouts/partials/iconlink.html

18 lines
384 B
HTML
Raw Normal View History

<a
2021-10-20 12:33:38 -05:00
{{ if eq (lower .Identifier) 'mastodon' }}
rel="me"
{{ 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>