7 lines
238 B
HTML
7 lines
238 B
HTML
|
{{- $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 -}}
|