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