logo

drewdevault.com

[mirror] blog and personal website of Drew DeVault
commit: e926b878781da1bcf9551ea9ab7a5289036f9468
parent e2e493977007c98cc8c0a26b0f09ad31dc87da14
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 27 Sep 2020 08:46:16 -0400

rss.xml: limit to HTML posts

Diffstat:

Mlayouts/blog/rss.xml2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/layouts/blog/rss.xml b/layouts/blog/rss.xml @@ -26,6 +26,7 @@ {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ end }} {{ range $pages }} + {{- if .OutputFormats.Get "HTML" -}} <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> @@ -34,6 +35,7 @@ <guid>{{ .Permalink }}</guid> <description>{{- .Content | html -}}</description> </item> + {{- end -}} {{ end }} </channel> </rss>