webseite/templates/feed_projekte.xml

34 lines
1.4 KiB
XML
Raw Normal View History

2019-02-12 17:45:44 +01:00
<?xml version="1.0" encoding="utf-8"?>{%
2019-02-16 18:37:53 +01:00
set baseurl = "https://c3woc.de/" %}{%
set search = "rezept" %}
2019-02-12 17:45:44 +01:00
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">{%
if bag('translate', this.alt, 'projectfeed') %}{{ bag('translate', this.alt, 'projectfeed') }}{%
2019-02-24 19:53:37 +01:00
else %}Rezepte des C3WOC{% endif %}</title>
2019-02-27 15:53:23 +01:00
<id>{{ baseurl }}feed_rezepte.xml</id>
2019-02-12 17:45:44 +01:00
<updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
<link href="{{ baseurl }}{{ search }}/" />
2019-02-27 15:53:23 +01:00
<link href="{{ baseurl }}feed_rezepte.xml" rel="self" />
2019-02-12 17:45:44 +01:00
<author>
2019-02-16 18:37:53 +01:00
<name>{% if this.author %}{{ this.author }}{% else %}C3WOC{% endif %}</name>
2019-02-12 17:45:44 +01:00
</author>{%
2019-02-27 15:53:23 +01:00
set pages = site.query('/rezept').include_undiscoverable(true).all() %}{%
2019-02-12 17:45:44 +01:00
for page in pages %}{% if not page._hidden %}
<entry xml:base="{{ baseurl }}{{ search }}/{{ page._id }}/">
<title type="text">{{ page.title }}</title>
<id>{{ baseurl }}{{ search }}/{{ page._id }}</id>
<link href="{{ search }}/{{ page._id }}/" xml:base="{{ baseurl }}" />
<author>
2019-02-16 18:37:53 +01:00
<name>{% if page.author %}{{ page.author }}{% else %}C3WOC{% endif %}</name>
2019-02-12 17:45:44 +01:00
</author>
<content type="{% if page.xml_img %}html{% else %}text{% endif %}">
{% if page.teaser %}{{ page.teaser }}{% endif %}
{% if page.xml_img
%}&lt;br/&gt;
&lt;img width=&quot;23%&quot; src=&quot;{{ page.xml_img }}&quot; /&gt;
{% endif %}
</content>
</entry>{% endif %}{%
endfor %}
</feed>