2024-10-21 13:47:30 +02:00
|
|
|
{{- $iconFile := resources.GetMatch (printf "icons/%s.svg" .) -}}
|
|
|
|
{{- if $iconFile -}}
|
|
|
|
{{- $iconFile.Content | safeHTML -}}
|
|
|
|
{{- else -}}
|
2024-10-21 21:29:11 +02:00
|
|
|
{{- warnf "Error: icon '%v.svg' is not found under 'assets/icons' folder" . -}}
|
2024-10-21 13:47:30 +02:00
|
|
|
{{- end -}}
|