aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2023-12-26 18:21:56 +0100
committerGuido Günther <agx@sigxcpu.org>2023-12-26 19:59:00 +0100
commitf78fc4b14f95583ec7a552a8e4564f7de0763487 (patch)
treec73d854702e32c5fb3fa8c9f2b910f9added7183
parent8e2372cb1740896b1d99cf7bc12ce5f98a58f3bc (diff)
shortcodes: Make it simple to add information that doesn't end up in the output
Take from https://discourse.gohugo.io/t/ignore-content-when-publishing/13008
-rw-r--r--layouts/shortcodes/comment.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/shortcodes/comment.html b/layouts/shortcodes/comment.html
new file mode 100644
index 0000000..e46cdd7
--- /dev/null
+++ b/layouts/shortcodes/comment.html
@@ -0,0 +1 @@
+{{ with .Get 0 }}{{ .Inner }}{{ end }}