Compare commits

..

No commits in common. "d9232eb5de646ac71bca0b2da692dac76a09efe8" and "eecd07ac9567bb1d146177220f66b733ec4554e3" have entirely different histories.

2 changed files with 2 additions and 17 deletions

View File

@ -1,5 +0,0 @@
---
date: 2025-03-19T11:28:25+0800
---
* In the website's RSS feed, changelog items are now linked to their anchor links on the changelog pages, instead of the website's home page.

View File

@ -20,21 +20,11 @@ eleventyComputed:
</author>
{%- for item in collections["feed items"] | reverse | itemLimit(15) %}
{% set absolutePostUrl %}{{ item.url | absoluteUrl(feedMeta.baseUrl) }}{% endset %}
{% set absoluteChangelogUrl %}{{ feedMeta.baseUrl }}changelogs/{{ item.fileSlug.substring(0, 4) }}/#{{ item.fileSlug }}{% endset %}
{% set absoluteItemUrl %}
{% if item.data.tags.includes("changelogs") %}
{{ absoluteChangelogUrl }}
{% else %}
{{ absolutePostUrl }}
{% endif %}
{% endset %}
<entry>
<title>{{ item.data.title | safe }}</title>
<link href="{{ absoluteItemUrl }}"/>
<link href="{{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}"/>
<updated>{{ item.date | dateToRfc3339 }}</updated>
<id>{{ absoluteItemUrl }}</id>
<id>{{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}</id>
<content type="html">{{ item.content | renderTransforms(item.data.page, feedMeta.baseUrl) }}</content>
</entry>
{%- endfor %}