diff --git a/_config.yml b/_config.yml index 9b254aa..c1aabac 100644 --- a/_config.yml +++ b/_config.yml @@ -71,6 +71,8 @@ collections: updates: output: true permalink: /updates/:year/:month/:day/:title + sort_by: date + reverse: false feed: path: /atom.xml diff --git a/atom.xml b/atom.xml index bc9e931..6eb93ce 100644 --- a/atom.xml +++ b/atom.xml @@ -7,10 +7,17 @@ layout: none peachmoon.moe blog and updates site updates and blog posts by mana {{ site.url }} - {% for post in site.posts %} + + + {% assign all_posts = site.posts | concat: site.collections.updates.docs %} + {% assign sorted_posts = all_posts | sort: 'date' %} + + + {% for post in sorted_posts %} {% unless post.draft %} {{ post.title | xml_escape }} + {{ post.collection }} {{ post.content | xml_escape }} {{ post.date | date_to_xmlschema }} {{ post.url | prepend: site.url }} @@ -18,14 +25,5 @@ layout: none {% endunless %} {% endfor %} - - {% for update in site.updates %} - - {{ update.title | xml_escape }} - {{ update.content | xml_escape }} - {{ update.date | date_to_xmlschema }} - {{ update.url | prepend: site.url }} - - {% endfor %} \ No newline at end of file