mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +01:00
6 lines
No EOL
237 B
HTML
6 lines
No EOL
237 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 -}} |