PaperModX/layouts/partials/social_icons.html

17 lines
547 B
HTML
Raw Normal View History

<div class="social-icons">
{{- range .icons }}
2022-04-21 11:01:25 +01:00
{{- $icon_name := ( trim .name " " | lower )}}
{{- if (eq .url "email") }}
2022-05-19 09:38:00 +01:00
<a href="mailto:{{ $.MaskedEmail | default $.Email }}" title="{{ .name | title }}">
2022-04-21 11:01:25 +01:00
{{ safeHTML (index $.svg $icon_name | default $.svg.default) }}
</a>
{{- else }}
<a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ .name | title }}">
{{ safeHTML (index $.svg $icon_name | default $.svg.default) }}
2021-03-30 13:37:36 +01:00
</a>
{{- end }}
2022-04-21 11:01:25 +01:00
{{- end }}
</div>