Files
Alessandro Lai 0ad1361ebe Upgrade all packages
PHP to 8.4
Twig 3
Sculpin 3.3.0-alpha4 (to support Twig 3)
CommonMark 2
spatie/commonmark-highlighter v3 (to support CommonMark v2)
aptoma/twig-markdown dropped and ported inside the project
2025-02-25 16:48:55 +01:00

36 lines
1.2 KiB
XML

---
permalink: atom.xml
use:
- authors
- posts
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>PHP-FIG Blog Feed</title>
<link href="{{ site.host }}/atom.xml" rel="self"/>
<link href="{{ site.host }}/"/>
<author>
<name>PHP-FIG</name>
</author>
<updated>{{ site.calculated_date | date('c') }}</updated>
<id>{{ site.host }}/</id>
{% for post in data.posts %}
<entry>
<title type="html"><![CDATA[{{ post.title }}]]></title>
<link href="{{ site.host }}{{ post.url }}"/>
<updated>{{ post.date|date('c') }}</updated>
<id>{{ site.host }}{{ post.url }}</id>
<content type="html"><![CDATA[{{ post.blocks.content|striptags('<p><br><em><strong><blockquote><ul><ol><li><img><pre><code><a><h1><h2><h3><h4><h5><h6>')|raw }}]]></content>
{% for author in data.authors %}{% if post.author and author.identifier is same as(post.author) %}
<author>
<name><![CDATA[{{ author.title }}]]></name>
<uri>{{ site.host }}{{ author.url }}</uri>
</author>
{% endif %}{% endfor %}
</entry>
{% endfor %}
</feed>