[meta] Fix up firehose feed
This commit is contained in:
parent
96c05311a9
commit
5ceeab47a5
|
@ -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…
Reference in New Issue