From f47f61c8d1120dbfc5c276ead23b13c1794d7922 Mon Sep 17 00:00:00 2001 From: onomanapeia Date: Fri, 15 Nov 2024 17:01:51 -0600 Subject: [PATCH] rss fix --- _config.yml | 2 ++ atom.xml | 18 ++++++++---------- 2 files changed, 10 insertions(+), 10 deletions(-) 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