From fd19af8b5b860ccaff388cb1a0fd9eadfc6a65d0 Mon Sep 17 00:00:00 2001 From: xangelo Date: Wed, 7 Feb 2024 22:35:40 -0500 Subject: [PATCH] add includes shortcode --- layouts/shortcodes/include.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 layouts/shortcodes/include.html diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html new file mode 100644 index 0000000..ae464ed --- /dev/null +++ b/layouts/shortcodes/include.html @@ -0,0 +1,4 @@ +{{ $file := .Get 0 }} +{{ if strings.HasSuffix $file ".md" }} + {{ $file | readFile | safeHTML }} +{{ end }} -- 2.25.1