Fix several issues with the Atom feeds
- Make sure Author info populates correctly - Sort posts by Date - Remove un-dated posts from the feed - Remove Draft posts from the feed if the site isn't in Development mode
This commit is contained in:
parent
4689129355
commit
32762afb55
5 changed files with 19 additions and 16 deletions
|
@ -1,7 +1,6 @@
|
|||
{{- $page := . -}}
|
||||
{{- $pages := $page.RegularPages -}}
|
||||
{{- $limit := $.Site.Config.Services.RSS.Limit -}}
|
||||
{{- $pages := .RegularPagesRecursive.ByDate.Reverse -}}
|
||||
{{- $limit := int $.Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
{{ partial "feeds/atom/base.xml" (dict "context" $page "pages" $pages "limit" $limit) }}
|
||||
{{ partial "feeds/atom/base.xml" (dict "context" . "pages" $pages "limit" $limit) }}
|
||||
|
|
1
layouts/_default/section.xml
Symbolic link
1
layouts/_default/section.xml
Symbolic link
|
@ -0,0 +1 @@
|
|||
section.atom
|
Loading…
Add table
Add a link
Reference in a new issue