archetypes/default.md π
@@ -2,5 +2,6 @@
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
+rss_only: true
cover: ./cover.png
---
Amolith created
archetypes/default.md | 1 +
themes/secluded/layouts/_default/list.html | 3 +++
themes/secluded/layouts/_default/single.html | 5 +++++
3 files changed, 9 insertions(+)
@@ -2,5 +2,6 @@
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
+rss_only: true
cover: ./cover.png
---
@@ -26,6 +26,8 @@
<div class="posts">
<ul class="posts-list">
{{- range .Pages }}
+ {{- if .Params.rss_only }}
+ {{- else }}
<li class="posts-item">
<a href="{{.Permalink}}">
<span class="posts-title">{{.Title}}</span>
@@ -39,6 +41,7 @@
</p>
</li>
{{- end }}
+ {{- end }}
</ul>
</div>
</div>
@@ -15,6 +15,11 @@
</aside>
{{- end }}
<div class="content">
+ {{- if .Params.rss_only }}
+ <aside class="admonition note">
+ <p><strong>Note:</strong> this is an RSS-only post; it's exclusively publicised through <a href="/posts/index.xml">my RSS feed.</a> Read about <a href="https://daverupert.com/2018/01/welcome-to-rss-club/">RSS Club</a> for more information.</p>
+ </aside>
+ {{- end }}
{{ .Content | replaceRE "(<h[1-6] id=\"(.+)\".*>)(.*)(</h[1-6]>)" `${1}${3} <a class="anchor-tag" ariaLabel="Anchor" href="#${2}">ΒΆ</a>${4}` | safeHTML }}
</div>
<hr/>