PaperModX/layouts/partials/social_icons.html

17 lines
529 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") }}
<a href="mailto:{{ $.MaskedEmail }}" title="{{ .name | title }}">
{{ 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>