aboutsummaryrefslogtreecommitdiff
path: root/themes/neonxp/layouts/partials/icon.html
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-20 03:20:47 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-20 03:20:47 +0300
commit8b78390987476352a6459460e00d5c4cdc0717c2 (patch)
tree77fd218ddd7203b10b4e4969ed8ede2fb4753d24 /themes/neonxp/layouts/partials/icon.html
parent74b65dd83f7c66d1f67f961b1fee65400b1fc334 (diff)
Обновил стиль
Diffstat (limited to 'themes/neonxp/layouts/partials/icon.html')
-rw-r--r--themes/neonxp/layouts/partials/icon.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/neonxp/layouts/partials/icon.html b/themes/neonxp/layouts/partials/icon.html
new file mode 100644
index 0000000..72162e8
--- /dev/null
+++ b/themes/neonxp/layouts/partials/icon.html
@@ -0,0 +1,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 -}} \ No newline at end of file