From: xangelo Date: Thu, 8 Feb 2024 03:35:40 +0000 (-0500) Subject: add includes shortcode X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=fd19af8b5b860ccaff388cb1a0fd9eadfc6a65d0;p=xangelo.ca.git add includes shortcode --- 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 }}