aboutsummaryrefslogtreecommitdiff
path: root/themes/neonxp/layouts/partials/icon.html
blob: 72162e89583d14f1cde4511d168c1479ca697081 (plain) (blame)
1
2
3
4
5
6
{{- $iconFile := resources.GetMatch (printf "icons/%s.svg" .) -}}
{{- if $iconFile -}}
    {{- $iconFile.Content | safeHTML -}}
{{- else -}}
    {{- errorf "Error: icon '%s.svg' is not found under 'assets/icons' folder" . -}}
{{- end -}}