42 lines
1.5 KiB
XML
42 lines
1.5 KiB
XML
{% import "macros/macros.html" as post_macros %}
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
|
|
<title>{{ config.title }}
|
|
{%- if term %} - {{ term.name }}
|
|
{%- elif section.title %} - {{ section.title }}
|
|
{%- endif -%}
|
|
</title>
|
|
{%- if config.description %}
|
|
<subtitle>{{ config.description }}</subtitle>
|
|
{%- endif %}
|
|
<author>
|
|
<name>mat ess</name>
|
|
<email>mat@mat.services</email>
|
|
<uri>https://www.mat.services</uri>
|
|
</author>
|
|
<link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
|
|
<icon>{{ get_url(path=config.extra.favicon) }}</icon>
|
|
<rights>© 2022 mat ess</rights>
|
|
<generator uri="https://www.getzola.org/">Zola</generator>
|
|
<updated>{{ last_updated | date(format="%+") }}</updated>
|
|
<id>{{ feed_url | safe }}</id>
|
|
{%- for page in pages %}
|
|
{%- if page.draft %}
|
|
{% continue %}
|
|
{% endif %}
|
|
<entry xml:lang="{{ page.lang }}">
|
|
<title>{{ page.title }}</title>
|
|
<published>{{ page.date | date(format="%+") }}</published>
|
|
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
|
|
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
|
|
<id>{{ page.permalink | safe }}</id>
|
|
<summary>{{ page.description | default(value="a post from mat's blog.") | safe }}</summary>
|
|
<content type="html">
|
|
{%- if page.extra.hero %}
|
|
<![CDATA[{{ post_macros::hero(page=page) }}]]>
|
|
{% endif -%}
|
|
{{ page.content }}
|
|
</content>
|
|
</entry>
|
|
{% endfor %}
|
|
</feed> |