From 078ba9cf4cd934acefd338c2192cc8a73b856cb5 Mon Sep 17 00:00:00 2001 From: zongor Date: Sat, 14 Oct 2023 12:05:15 -0400 Subject: [PATCH] add raw html and post-bundle --- archetypes/post-bundle/index.md | 5 +++++ layouts/_default/summary.html | 2 +- layouts/shortcodes/rawhtml.html | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 archetypes/post-bundle/index.md create mode 100644 layouts/shortcodes/rawhtml.html diff --git a/archetypes/post-bundle/index.md b/archetypes/post-bundle/index.md new file mode 100644 index 0000000..8e4b597 --- /dev/null +++ b/archetypes/post-bundle/index.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- \ No newline at end of file diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index c84e58f..fa01317 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -5,7 +5,7 @@ {{ . }} {{ end }}
- {{ .Summary }} + {{ .Summary | safeHTML | truncate 125 }} {{ if .Truncated }} Read more... {{ end }} diff --git a/layouts/shortcodes/rawhtml.html b/layouts/shortcodes/rawhtml.html new file mode 100644 index 0000000..520ec17 --- /dev/null +++ b/layouts/shortcodes/rawhtml.html @@ -0,0 +1,2 @@ + +{{.Inner}} \ No newline at end of file