This commit is contained in:
onomanapeia 2024-11-15 17:01:51 -06:00
parent 7da2cca668
commit f47f61c8d1
2 changed files with 10 additions and 10 deletions

View file

@ -71,6 +71,8 @@ collections:
updates: updates:
output: true output: true
permalink: /updates/:year/:month/:day/:title permalink: /updates/:year/:month/:day/:title
sort_by: date
reverse: false
feed: feed:
path: /atom.xml path: /atom.xml

View file

@ -7,10 +7,17 @@ layout: none
<title>peachmoon.moe blog and updates</title> <title>peachmoon.moe blog and updates</title>
<description>site updates and blog posts by mana</description> <description>site updates and blog posts by mana</description>
<link>{{ site.url }}</link> <link>{{ site.url }}</link>
{% for post in site.posts %}
<!-- Combine blog posts and updates -->
{% assign all_posts = site.posts | concat: site.collections.updates.docs %}
{% assign sorted_posts = all_posts | sort: 'date' %}
{% for post in sorted_posts %}
{% unless post.draft %} {% unless post.draft %}
<item> <item>
<title>{{ post.title | xml_escape }}</title> <title>{{ post.title | xml_escape }}</title>
<category>{{ post.collection }}</category>
<description>{{ post.content | xml_escape }}</description> <description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate> <pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
<link>{{ post.url | prepend: site.url }}</link> <link>{{ post.url | prepend: site.url }}</link>
@ -18,14 +25,5 @@ layout: none
</item> </item>
{% endunless %} {% endunless %}
{% endfor %} {% endfor %}
{% for update in site.updates %}
<item>
<title>{{ update.title | xml_escape }}</title>
<description>{{ update.content | xml_escape }}</description>
<pubDate>{{ update.date | date_to_xmlschema }}</pubDate>
<guid isPermaLink="true">{{ update.url | prepend: site.url }}</guid>
</item>
{% endfor %}
</channel> </channel>
</rss> </rss>