add includes shortcode
authorxangelo <me@xangelo.ca>
Thu, 8 Feb 2024 03:35:40 +0000 (22:35 -0500)
committerxangelo <me@xangelo.ca>
Thu, 8 Feb 2024 03:35:40 +0000 (22:35 -0500)
layouts/shortcodes/include.html [new file with mode: 0644]

diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html
new file mode 100644 (file)
index 0000000..ae464ed
--- /dev/null
@@ -0,0 +1,4 @@
+{{ $file := .Get 0 }}
+{{ if strings.HasSuffix $file ".md" }}
+  {{ $file | readFile | safeHTML }}
+{{ end }}