From a835107bdf1a7c3b3a5ac39bf84e51f87e286b47 Mon Sep 17 00:00:00 2001 From: onomanapeia Date: Fri, 15 Nov 2024 17:19:04 -0600 Subject: [PATCH] rss fix --- atom.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/atom.xml b/atom.xml index 5d824e6..2ee1274 100644 --- a/atom.xml +++ b/atom.xml @@ -9,11 +9,9 @@ layout: none {{ site.url }} - {% assign updates_posts = site.collections.updates.docs %} - {% if updates_posts == nil %} - {% assign updates_posts = [] %} - {% endif %} - {% assign all_posts = site.posts | concat: updates_posts %} + {% assign updates_posts = site.collections['updates'].docs | default: [] %} + + {% assign all_posts = site.posts | merge: updates_posts %} {% assign sorted_posts = all_posts | sort: 'date' %} {% for post in sorted_posts %} @@ -29,5 +27,4 @@ layout: none {% endunless %} {% endfor %} - - + \ No newline at end of file