|
| 1 | +--- |
| 2 | +permalink: feed.xml |
| 3 | +layout: false |
| 4 | +eleventyExcludeFromCollections: true |
| 5 | +metadata: |
| 6 | + title: X-GOVUK |
| 7 | + subtitle: "Notes and updates on projects being developed across government teams" |
| 8 | + language: en |
| 9 | + url: https://x-govuk.github.io |
| 10 | +--- |
| 11 | +<?xml version="1.0" encoding="utf-8"?> |
| 12 | +<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.url }}"> |
| 13 | + <title>{{ metadata.title }}</title> |
| 14 | + <subtitle>{{ metadata.subtitle }}</subtitle> |
| 15 | + <link href="{{ permalink | absoluteUrl(metadata.url) }}" rel="self"/> |
| 16 | + <link href="{{ metadata.url }}"/> |
| 17 | + <updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated> |
| 18 | + <id>{{ metadata.url }}/</id> |
| 19 | + {%- for post in collections.post | reverse %} |
| 20 | + {%- set absolutePostUrl = post.url | absoluteUrl(metadata.url) %} |
| 21 | + <entry> |
| 22 | + <title>{{ post.data.title }}</title> |
| 23 | + <link href="{{ absolutePostUrl }}"/> |
| 24 | + <updated>{{ post.date | dateToRfc3339 }}</updated> |
| 25 | + <id>{{ absolutePostUrl }}</id> |
| 26 | + {% if post.data.authors %} |
| 27 | + {% for author in post.data.authors %} |
| 28 | + <author> |
| 29 | + <name>{{ author.name }}</name> |
| 30 | + {% if author.url %}<uri>{{ author.url }}</uri>{% endif %} |
| 31 | + </author> |
| 32 | + {% endfor %} |
| 33 | + {% elif post.data.author %} |
| 34 | + <author> |
| 35 | + <name>{{ post.data.author.name }}</name> |
| 36 | + {% if post.data.author.url %}<uri>{{ post.data.author.url }}</uri>{% endif %} |
| 37 | + </author> |
| 38 | + {% endif %} |
| 39 | + <content xml:lang="{{ metadata.language }}" type="html"> |
| 40 | + <![CDATA[ {{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }} ]]> |
| 41 | + </content> |
| 42 | + </entry> |
| 43 | + {%- endfor %} |
| 44 | +</feed> |
0 commit comments