From 0755d29e36e43213f9165277f2f20287f126fb8d Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Thu, 20 Nov 2025 18:24:37 +0100 Subject: feat: add layout to include remote content --- layouts/shortcodes/include-remote.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 layouts/shortcodes/include-remote.html (limited to 'layouts') diff --git a/layouts/shortcodes/include-remote.html b/layouts/shortcodes/include-remote.html new file mode 100644 index 0000000..eb5a010 --- /dev/null +++ b/layouts/shortcodes/include-remote.html @@ -0,0 +1,4 @@ +{{ $url := .Get "url" }} +{{ $res := resources.GetRemote $url }} +{{ $content := $res.Content }} +{{ $content | safeHTML }} -- cgit v1.2.3