From 2c17fbcdf8ea36d9d10dba243db94de85575e8ed Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 2 Oct 2023 09:02:20 +0200 Subject: chore: Copy theme layouts --- layouts/partials/handler/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 layouts/partials/handler/svg.html (limited to 'layouts/partials/handler/svg.html') diff --git a/layouts/partials/handler/svg.html b/layouts/partials/handler/svg.html new file mode 100644 index 0000000..72162e8 --- /dev/null +++ b/layouts/partials/handler/svg.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 -- cgit v1.3