rss fix
This commit is contained in:
parent
f7fa7231da
commit
a835107bdf
1 changed files with 4 additions and 7 deletions
11
atom.xml
11
atom.xml
|
@ -9,11 +9,9 @@ layout: none
|
|||
<link>{{ site.url }}</link>
|
||||
|
||||
<!-- Combine blog posts and updates -->
|
||||
{% 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 %}
|
||||
</channel>
|
||||
</rss>
|
||||
</rss>
|
||||
</rss>
|
Loading…
Add table
Reference in a new issue