From 83a0754e462e0161589d848a52dcdd9e8a3fef1f Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 7 Nov 2025 19:15:21 +0100 Subject: [PATCH] feat: add shortcode to embed html This was implemented to embed drawio exports --- layouts/shortcodes/html.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 layouts/shortcodes/html.html diff --git a/layouts/shortcodes/html.html b/layouts/shortcodes/html.html new file mode 100644 index 0000000..f309863 --- /dev/null +++ b/layouts/shortcodes/html.html @@ -0,0 +1,13 @@ +{{ $source := index .Params 0 }} + +{{ with .Page.Resources.GetMatch $source | readFile }} +{{ .|safeHTML }} +{{ end }} + \ No newline at end of file