fix: exclude "Weeklies" entry in RSS feed

This commit is contained in:
recanman 2024-07-05 10:24:20 -07:00
parent ba46190603
commit 3104b7fb1c

View file

@ -12,16 +12,18 @@
<atom:link href="{{ .Permalink }}" rel="self" type="application/rss+xml" /> <atom:link href="{{ .Permalink }}" rel="self" type="application/rss+xml" />
{{ range where .Site.Pages "Type" "weekly" }} {{ range where .Site.Pages "Type" "weekly" }}
<item> {{ if ne .Title "Weeklies" }}
<title>{{ .Title }}</title> <item>
<link>{{ .Permalink }}</link> <title>{{ .Title }}</title>
<guid isPermaLink="true">{{ .Permalink }}</guid> <link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate> <guid isPermaLink="true">{{ .Permalink }}</guid>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
<content type="html">{{ .Content | truncate 350 | html }}</content> <content type="html">{{ .Content | truncate 350 | html }}</content>
<media:thumbnail url="{{ .Permalink }}cover.png" xmlns:media="http://search.yahoo.com/mrss/" /> <media:thumbnail url="{{ .Permalink }}cover.png" xmlns:media="http://search.yahoo.com/mrss/" />
<media:content medium="image" url="{{ .Permalink }}cover.png" xmlns:media="http://search.yahoo.com/mrss/" /> <media:content medium="image" url="{{ .Permalink }}cover.png" xmlns:media="http://search.yahoo.com/mrss/" />
</item> </item>
{{ end }}
{{ end }} {{ end }}
</channel> </channel>
</rss> </rss>