aboutsummaryrefslogtreecommitdiff
path: root/_includes/feed.atom
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_includes/feed.atom5
1 files changed, 3 insertions, 2 deletions
diff --git a/_includes/feed.atom b/_includes/feed.atom
index 511611f..53a0897 100644
--- a/_includes/feed.atom
+++ b/_includes/feed.atom
@@ -5,14 +5,15 @@
<id>{{ page.url | absolute_url | xml_escape }}</id>
<title>{{ site.title | xml_escape }}</title>
- <subtitle>{{ site.t.feed.title[include.kind][include.lang] | smartify | xml_escape }}</subtitle>
+ <subtitle>{{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }}</subtitle>
<author>
<name>{{ site.author.name | xml_escape }}</name>
<email>{{ site.author.email | xml_escape }}</email>
</author>
- {% for entry in include.entries %}
+ {% assign entries = include.entries | where:"lang", page.lang | sort: "date" | reverse %}
+ {% for entry in entries %}
<entry xml:lang="{{ entry.lang }}">
<title type="html">{{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
<link href="{{ entry.url | absolute_url }}" rel="alternate" type="text/html" title="{{ entry.title | xml_escape }}" />