From 48d371861330d0a62a5a5d8f3fb97ef165887a28 Mon Sep 17 00:00:00 2001 From: Diego Ripley Date: Wed, 18 Feb 2026 09:29:08 -0500 Subject: [PATCH] Embed SVG via Hugo shortcode --- layouts/shortcodes/svg.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 layouts/shortcodes/svg.html diff --git a/layouts/shortcodes/svg.html b/layouts/shortcodes/svg.html new file mode 100644 index 0000000..05d538e --- /dev/null +++ b/layouts/shortcodes/svg.html @@ -0,0 +1,4 @@ +{{ $file := .Get "src" }} +
+ {{ readFile $file | safeHTML }} +
\ No newline at end of file