add rss-only posts
This commit is contained in:
parent
35ae60f85e
commit
d8c9cd1e84
|
@ -2,5 +2,6 @@
|
||||||
title: "{{ replace .Name "-" " " | title }}"
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
date: {{ .Date }}
|
date: {{ .Date }}
|
||||||
draft: true
|
draft: true
|
||||||
|
rss_only: true
|
||||||
cover: ./cover.png
|
cover: ./cover.png
|
||||||
---
|
---
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
<ul class="posts-list">
|
<ul class="posts-list">
|
||||||
{{- range .Pages }}
|
{{- range .Pages }}
|
||||||
|
{{- if .Params.rss_only }}
|
||||||
|
{{- else }}
|
||||||
<li class="posts-item">
|
<li class="posts-item">
|
||||||
<a href="{{.Permalink}}">
|
<a href="{{.Permalink}}">
|
||||||
<span class="posts-title">{{.Title}}</span>
|
<span class="posts-title">{{.Title}}</span>
|
||||||
|
@ -39,6 +41,7 @@
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
</aside>
|
</aside>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<div class="content">
|
<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 }}
|
{{ .Content | replaceRE "(<h[1-6] id=\"(.+)\".*>)(.*)(</h[1-6]>)" `${1}${3} <a class="anchor-tag" ariaLabel="Anchor" href="#${2}">¶</a>${4}` | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
Loading…
Reference in New Issue