]>
Commit | Line | Data |
---|---|---|
8f9d1d4d DC |
1 | ---json |
2 | { | |
3 | "permalink": "feed.xml", | |
f2a92ac6 | 4 | "layout": false, |
8f9d1d4d DC |
5 | "eleventyExcludeFromCollections": true, |
6 | "metadata": { | |
7 | "title": "ESLint Blog", | |
8 | "subtitle": "feed description", | |
9 | "url": "https://eslint.org/", | |
10 | "feedUrl": "https://eslint.org.com/feed.xml", | |
11 | "author": { | |
12 | "name": "ESLint", | |
13 | "email": "" | |
14 | } | |
15 | } | |
16 | } | |
17 | --- | |
18 | <?xml version="1.0" encoding="utf-8"?> | |
19 | <feed xmlns="http://www.w3.org/2005/Atom"> | |
20 | <title>{{ metadata.title }}</title> | |
21 | <subtitle>{{ metadata.subtitle }}</subtitle> | |
22 | <link href="{{ metadata.feedUrl }}" rel="self"/> | |
23 | <link href="{{ metadata.url }}"/> | |
24 | <updated>{{ collections.blog | getNewestCollectionItemDate | dateToRfc3339 }}</updated> | |
25 | <id>{{ metadata.url }}</id> | |
26 | <author> | |
27 | <name>{{ metadata.author.name }}</name> | |
28 | <email>{{ metadata.author.email }}</email> | |
29 | </author> | |
30 | {%- for post in collections.blog %} | |
31 | {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %} | |
32 | <entry> | |
33 | <title>{{ post.data.title }}</title> | |
34 | <link href="{{ absolutePostUrl }}"/> | |
35 | <updated>{{ post.date | dateToRfc3339 }}</updated> | |
36 | <id>{{ absolutePostUrl }}</id> | |
37 | <content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content> | |
38 | </entry> | |
39 | {%- endfor %} | |
40 | </feed> |