Browse Source

[meta] Fix up firehose feed

bascht.com
Sebastian Schulze 8 months ago
parent
commit
5ceeab47a5
Signed by: bascht GPG Key ID: 5BCB1D3B4D38A35A
  1. 8
      layouts/section/posts.rss.xml

8
layouts/section/posts.rss.xml

@ -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>
Loading…
Cancel
Save