Home
/
xangelo.ca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efeaf3c
)
add includes shortcode
author
xangelo
<me@xangelo.ca>
Thu, 8 Feb 2024 03:35:40 +0000
(22:35 -0500)
committer
xangelo
<me@xangelo.ca>
Thu, 8 Feb 2024 03:35:40 +0000
(22:35 -0500)
layouts/shortcodes/include.html
[new file with mode: 0644]
patch
|
blob
diff --git a/layouts/shortcodes/include.html
b/layouts/shortcodes/include.html
new file mode 100644
(file)
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 }}