This commit is contained in:
onomanapeia 2024-11-15 17:19:04 -06:00
parent f7fa7231da
commit a835107bdf

View file

@ -9,11 +9,9 @@ layout: none
<link>{{ site.url }}</link> <link>{{ site.url }}</link>
<!-- Combine blog posts and updates --> <!-- Combine blog posts and updates -->
{% assign updates_posts = site.collections.updates.docs %} {% assign updates_posts = site.collections['updates'].docs | default: [] %}
{% if updates_posts == nil %}
{% assign updates_posts = [] %} {% assign all_posts = site.posts | merge: updates_posts %}
{% endif %}
{% assign all_posts = site.posts | concat: updates_posts %}
{% assign sorted_posts = all_posts | sort: 'date' %} {% assign sorted_posts = all_posts | sort: 'date' %}
{% for post in sorted_posts %} {% for post in sorted_posts %}
@ -30,4 +28,3 @@ layout: none
{% endfor %} {% endfor %}
</channel> </channel>
</rss> </rss>
</rss>