Break up the RSS template into item templates, like I did for atom
This commit is contained in:
parent
b2d24aad54
commit
2f3d133dda
5 changed files with 55 additions and 56 deletions
11
layouts/partials/rss_item_metadata.rss
Normal file
11
layouts/partials/rss_item_metadata.rss
Normal file
|
@ -0,0 +1,11 @@
|
|||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.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>
|
||||
{{- range slice "series" "categories" "tags" -}}
|
||||
{{ range $.GetTerms . }}
|
||||
{{- $domain := (.Site.GetPage (printf "/%s" .Section)).Permalink -}}
|
||||
<category domain="{{ $domain }}">{{ .Title }}</category>
|
||||
{{ end }}
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue