1
0
Fork 0

[meta] Fix up firehose feed

This commit is contained in:
Sebastian Schulze 2021-04-09 00:59:33 +02:00
parent 96c05311a9
commit 5ceeab47a5
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,11 @@
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<atom:link href="{{.Permalink}}" rel="self" type="application/rss+xml" />
{{ range $items := (where .Site.Pages "Params.type" "in" .Params.types).ByDate.Reverse }}
{{- $items := (where (where .Site.Pages "Section" "posts") "Type" "!=" "posts").ByDate.Reverse }}
{{- if .Params.types }}
{{- $items = (where .Site.Pages "Params.type" "in" .Params.types).ByDate.Reverse -}}
{{ end -}}
{{ range $items }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
@ -19,7 +23,7 @@
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
{{- end }}
</channel>
</rss>