Add a set of templates to generate an Atom feed!
This commit is contained in:
parent
e83ba90c62
commit
3ef4c7eb1b
4 changed files with 53 additions and 0 deletions
11
layouts/partials/atom_entry_metadata.xml
Normal file
11
layouts/partials/atom_entry_metadata.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<title>{{ .Title }}</title>
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Site.Author.name }}<author><name>{{ . }}</name></author>{{ end }}
|
||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{- range slice "series" "categories" "tags" -}}
|
||||
{{- range $.GetTerms . -}}
|
||||
{{ $scheme := (.Site.GetPage (printf "/%s" .Section)).Permalink }}
|
||||
<category term="{{ .Name }}" scheme="{{ $scheme }}" label="{{ .Title }}" />
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue