mirror of
https://github.com/rottenwheel/revuoxmrtheme.git
synced 2024-12-27 19:07:49 +00:00
fix: exclude "Weeklies" entry in RSS feed
This commit is contained in:
parent
ba46190603
commit
3104b7fb1c
1 changed files with 11 additions and 9 deletions
|
@ -12,16 +12,18 @@
|
|||
<atom:link href="{{ .Permalink }}" rel="self" type="application/rss+xml" />
|
||||
|
||||
{{ range where .Site.Pages "Type" "weekly" }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<guid isPermaLink="true">{{ .Permalink }}</guid>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
|
||||
{{ if ne .Title "Weeklies" }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<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>
|
||||
<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/" />
|
||||
</item>
|
||||
<content type="html">{{ .Content | truncate 350 | html }}</content>
|
||||
<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/" />
|
||||
</item>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
Loading…
Reference in a new issue