summaryrefslogtreecommitdiff
path: root/layouts/taxonomy.atom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/taxonomy.atom.xml')
-rw-r--r--layouts/taxonomy.atom.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/taxonomy.atom.xml b/layouts/taxonomy.atom.xml
index 88f56ef..601888f 100644
--- a/layouts/taxonomy.atom.xml
+++ b/layouts/taxonomy.atom.xml
@@ -21,7 +21,7 @@
{{- end }}
{{- end -}}
-{{- $pages := .Data.Pages }}
+{{- $pages := .Data.Pages.ByPublishDate.Reverse }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $pages = first $limit $pages }}
@@ -30,7 +30,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>
+ <updated>{{ .PublishDate.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>
<link href="{{ .Permalink }}atom.xml" rel="self" />
<link href="{{ .Permalink }}" rel="alternate" />
<author>
@@ -44,7 +44,7 @@
<entry>
<id>{{ .Permalink }}</id>
<title type="html">{{ .Title }}</title>
- <updated>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>
+ <updated>{{ .PublishDate.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>
<link href="{{ .Permalink }}" />
<content type="html">{{ .Content | html }}</content>
</entry>{{ end }}