webseite/templates/feed.xml
L3D ddc6a404fb Start translation
Former-commit-id: 87431b49175ed097312ac29954d7b04c1f465577 [formerly 8e851d3cc303728620f598d9e5c2c30c2163aff7] [formerly e301c764b82e17d758c8ecba229fa050c32646e3 [formerly 5b0c379691c5160c8f3a6c2ec53dcc898cfe6002]]
Former-commit-id: d6100de9ef508555b5bbb8762722a8455348bdd9 [formerly 0ac718e627ff57598e6c3c39fb812848f9cb4d9f]
Former-commit-id: 0da45284c5712a82ec351b71a6cd2a6d12d6314d
2018-10-13 00:02:29 +02:00

33 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>{%
set baseurl = "https://c3woc.de/" %}{%
set search = "blog" %}
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">Waffel Neuigkeiten</title>
<id>42{{ none|datetimeformat('YYYYMMDDhhmmss') }}</id>
<updated>{{ none|datetimeformat('YYYY-MM-DDThh:mm:ss') }}Z</updated>
<link href="{{ baseurl }}{{ search }}/" />
<link href="{{ baseurl }}feed.xml" rel="self" />
<author>
<name>{% if this.author %}{{ this.author }}{% else %}L3D{% endif %}</name>
</author>
<generator uri="https://github.com/ajdavis/lektor-atom" version="0.2">Lektor Atom Plugin</generator>{%
set pages = site.query('/blog').include_undiscoverable(true).all() %}{%
for page in pages %}
<entry xml:base="{{ baseurl }}{{ search }}/{{ page._id }}/">
<title type="text">{{ page.title }}</title>
<id>23{{ page.pub_date|datetimeformat('YYYYMMDDhhmmss') }}</id>
<updated>{{ page.pub_date|datetimeformat('YYYY-MM-DDThh:mm:ss') }}Z</updated>
<link href="{{ baseurl }}{{ search }}/{{ page._id }}/" />
<author>
<name>{% if page.author %}{{ page.author }}{% else %}L3D{% endif %}</name>
</author>
<content type="{% if page.xml_img %}html{% else %}text{% endif %}">
{{ page.xml }}
{% if page.xml_img
%}&lt;br/&gt;
&lt;img width=&quot;23%&quot; src=&quot;{{ page|url }}{{ page.xml_img }}&quot; /&gt;
{% endif %}
</content>
</entry>{%
endfor %}
</feed>