From f7fa7231da3029cd82c6dfc0ca037ff1a775344b Mon Sep 17 00:00:00 2001 From: onomanapeia Date: Fri, 15 Nov 2024 17:15:13 -0600 Subject: [PATCH] rss fix --- atom.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/atom.xml b/atom.xml index 98e8718..5d824e6 100644 --- a/atom.xml +++ b/atom.xml @@ -8,7 +8,11 @@ layout: none site updates and blog posts by mana {{ site.url }} - {% assign updates_posts = site.collections.updates.docs | default: [] %} + + {% assign updates_posts = site.collections.updates.docs %} + {% if updates_posts == nil %} + {% assign updates_posts = [] %} + {% endif %} {% assign all_posts = site.posts | concat: updates_posts %} {% assign sorted_posts = all_posts | sort: 'date' %} @@ -26,4 +30,4 @@ layout: none {% endfor %} - \ No newline at end of file +