From d8c9cd1e8480dbbfe24c74781f0311eb7d456208 Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 21 May 2023 01:57:58 -0400 Subject: [PATCH] add rss-only posts --- archetypes/default.md | 1 + themes/secluded/layouts/_default/list.html | 3 +++ themes/secluded/layouts/_default/single.html | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/archetypes/default.md b/archetypes/default.md index a3b393e..c8f6108 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -2,5 +2,6 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: true +rss_only: true cover: ./cover.png --- diff --git a/themes/secluded/layouts/_default/list.html b/themes/secluded/layouts/_default/list.html index f7ec5ee..d292d0b 100644 --- a/themes/secluded/layouts/_default/list.html +++ b/themes/secluded/layouts/_default/list.html @@ -26,6 +26,8 @@
diff --git a/themes/secluded/layouts/_default/single.html b/themes/secluded/layouts/_default/single.html index 2f035ab..d4e81f8 100644 --- a/themes/secluded/layouts/_default/single.html +++ b/themes/secluded/layouts/_default/single.html @@ -15,6 +15,11 @@ {{- end }}
+ {{- if .Params.rss_only }} + + {{- end }} {{ .Content | replaceRE "()(.*)()" `${1}${3} ΒΆ${4}` | safeHTML }}