webseite/templates/feed_projekte.xml
2019-02-27 15:53:23 +01:00

33 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>{%
set baseurl = "https://c3woc.de/" %}{%
set search = "rezept" %}
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">{%
if bag('translate', this.alt, 'projectfeed') %}{{ bag('translate', this.alt, 'projectfeed') }}{%
else %}Rezepte des C3WOC{% endif %}</title>
<id>{{ baseurl }}feed_rezepte.xml</id>
<updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
<link href="{{ baseurl }}{{ search }}/" />
<link href="{{ baseurl }}feed_rezepte.xml" rel="self" />
<author>
<name>{% if this.author %}{{ this.author }}{% else %}C3WOC{% endif %}</name>
</author>{%
set pages = site.query('/rezept').include_undiscoverable(true).all() %}{%
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>
<name>{% if page.author %}{{ page.author }}{% else %}C3WOC{% endif %}</name>
</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>