rss fix
This commit is contained in:
parent
f7fa7231da
commit
a835107bdf
1 changed files with 4 additions and 7 deletions
9
atom.xml
9
atom.xml
|
@ -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>
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue