mat.services/templates/atom.xml

44 lines
1.7 KiB
XML
Raw Normal View History

2022-11-19 03:56:45 +00:00
{% import "macros/macros.html" as post_macros %}
2022-09-04 05:48:34 +00:00
<?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 %}
2022-11-19 03:56:45 +00:00
<author>
<name>mat ess</name>
<email>mat@mat.services</email>
<uri>https://www.mat.services</uri>
</author>
2022-09-04 05:48:34 +00:00
<link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
2022-11-19 05:44:05 +00:00
<icon>{{ get_url(path=config.extra.favicon) }}</icon>
2022-11-19 03:56:45 +00:00
<rights>&#169; 2022 mat ess</rights>
2022-09-04 05:48:34 +00:00
<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 %}
2022-11-19 03:56:45 +00:00
{% endif %}
2022-09-04 05:48:34 +00:00
<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>
2022-11-19 04:36:47 +00:00
<summary>{{ page.description | default(value="a post from mat's blog.") | safe }}</summary>
2022-11-19 03:56:45 +00:00
<content type="html">
2022-11-19 04:36:47 +00:00
{%- if page.extra.hero %}
<![CDATA[<meta property="og:image" content="{{ get_url(path=page.path) }}/hero.webp">]]>
<![CDATA[<meta property="twitter:image" content="{{ get_url(path=page.path) }}/hero.webp">]]>
2022-11-19 04:14:23 +00:00
<![CDATA[{{ post_macros::hero(page=page) }}]]>
2022-11-19 04:36:47 +00:00
{% endif -%}
2022-11-19 03:56:45 +00:00
{{ page.content }}
</content>
2022-09-04 05:48:34 +00:00
</entry>
2022-11-19 03:56:45 +00:00
{% endfor %}
2022-09-04 05:48:34 +00:00
</feed>