Compare commits
No commits in common. "974a3dea62bacab699cb191ad89c81eb1a8221ec" and "60bff43638e0d7df5d9ded3ff9aae3f6549ea6a2" have entirely different histories.
974a3dea62
...
60bff43638
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "^1.1.10"
|
"@types/bun": "^1.1.9"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^3.0.0",
|
"@11ty/eleventy": "^3.0.0",
|
||||||
|
|
12
src/feed.njk
12
src/feed.njk
|
@ -3,8 +3,6 @@
|
||||||
eleventyExcludeFromCollections: true
|
eleventyExcludeFromCollections: true
|
||||||
eleventyComputed:
|
eleventyComputed:
|
||||||
permalink: "{{ sitemeta.feedPath }}"
|
permalink: "{{ sitemeta.feedPath }}"
|
||||||
feedMeta:
|
|
||||||
baseUrl: "{{ sitemeta.siteUrl }}/"
|
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
@ -13,18 +11,18 @@ eleventyComputed:
|
||||||
<link href="{{ sitemeta.feedUrl }}" rel="self"/>
|
<link href="{{ sitemeta.feedUrl }}" rel="self"/>
|
||||||
<link href="{{ sitemeta.siteUrl }}"/>
|
<link href="{{ sitemeta.siteUrl }}"/>
|
||||||
<updated>{{ collections.feedItems | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
|
<updated>{{ collections.feedItems | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
|
||||||
<id>{{ feedMeta.baseUrl }}</id>
|
<id>{{ sitemeta.siteUrl }}/</id>
|
||||||
<author>
|
<author>
|
||||||
<name>{{ sitemeta.siteAuthor.name }}</name>
|
<name>{{ sitemeta.siteAuthor.name }}</name>
|
||||||
<email>{{ sitemeta.siteAuthor.email }}</email>
|
<email>{{ sitemeta.siteAuthor.email }}</email>
|
||||||
</author>
|
</author>
|
||||||
{%- for item in collections["feed items"] | reverse | itemLimit(15) %}
|
{%- for item in collections["feed items"] | reverse | itemLimit(15) %}
|
||||||
{% set absolutePostUrl %}{{ item.url | absoluteUrl(feedMeta.baseUrl) }}{% endset %}
|
{% set absolutePostUrl %}{{ item.url | absoluteUrl(sitemeta.siteUrl) }}{% endset %}
|
||||||
<entry>
|
<entry>
|
||||||
<title>{{ item.data.title | safe }}</title>
|
<title>{{ item.data.title }}</title>
|
||||||
<link href="{{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}"/>
|
<link href="{{ absolutePostUrl }}"/>
|
||||||
<updated>{{ item.date | dateToRfc3339 }}</updated>
|
<updated>{{ item.date | dateToRfc3339 }}</updated>
|
||||||
<id>{{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}</id>
|
<id>{{ absolutePostUrl }}</id>
|
||||||
<content type="html">{{ item.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
<content type="html">{{ item.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
||||||
</entry>
|
</entry>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
Loading…
Reference in New Issue