forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
3241db13a6
commit
44067883d8
|
@ -13,6 +13,7 @@
|
|||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
{{ $pages = $pages.ByLastmod.Reverse }}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
|
@ -28,13 +29,13 @@
|
|||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{- end -}}
|
||||
{{ range where $pages "Type" "in" .Site.Params.mainSections }}
|
||||
{{ range where $pages "Type" "in" .Site.Params.searchSections }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<pubDate>{{ .Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<guid>{{ .Permalink }}-{{ .Lastmod }}</guid>
|
||||
<description>
|
||||
{{ printf "<![CDATA[%s]]>" .Content | safeHTML }}
|
||||
{{ $img := index (.Resources.ByType "image") 0 }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user