mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
---json
|
|
{
|
|
"permalink": "feed.xml",
|
|
"eleventyExcludeFromCollections": true,
|
|
"metadata": {
|
|
"title": "The htmx Blog",
|
|
"subtitle": "News about htmx",
|
|
"url": "https://htmx.org/",
|
|
"feedUrl": "https://htmx.org/feed.xml",
|
|
"author": {
|
|
"name": "Big Sky Software, et all",
|
|
"email": "info@bigsky.software"
|
|
}
|
|
}
|
|
}
|
|
---
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
<title>{{ metadata.title }}</title>
|
|
<subtitle>{{ metadata.subtitle }}</subtitle>
|
|
<link href="{{ metadata.feedUrl }}" rel="self"/>
|
|
<link href="{{ metadata.url }}"/>
|
|
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
|
|
<id>{{ metadata.url }}</id>
|
|
<author>
|
|
<name>{{ metadata.author.name }}</name>
|
|
<email>{{ metadata.author.email }}</email>
|
|
</author>
|
|
{%- for post in collections.posts %}
|
|
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
|
|
<entry>
|
|
<title>{{ post.data.title }}</title>
|
|
<link href="{{ absolutePostUrl }}"/>
|
|
<updated>{{ post.date | dateToRfc3339 }}</updated>
|
|
<id>{{ absolutePostUrl }}</id>
|
|
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
|
</entry>
|
|
{%- endfor %}
|
|
</feed> |