podcast-webseite/templates/feed_podcast-he.xml

36 lines
1.7 KiB
XML
Raw Normal View History

2019-06-14 11:21:48 +02:00
<?xml version="1.0" encoding="utf-8"?>
{%- set baseurl = "https://podcast.c3woc.de/" %}{%
2019-06-06 17:37:56 +02:00
set search = "eisen" %}
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">{%
2019-06-14 11:21:48 +02:00
if bag('translate', this.alt, 'hefeed') %}{{ bag('translate', this.alt, 'hefeed') }}{%
else %}Das heisse Eisen{% endif %}</title>
<id>{{ baseurl }}podcast-he.xml</id>
2019-06-06 17:37:56 +02:00
<updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
<link href="{{ baseurl }}{{ search }}/" />
2019-06-14 11:21:48 +02:00
<link href="{{ baseurl }}podcast-he.xml" rel="self" />
2019-06-06 17:37:56 +02:00
<author>
2019-06-14 11:21:48 +02:00
<name>{% if this.author %}{{ this.author }}{% else %}Venty und L3D{% endif %}</name>
2019-06-06 17:37:56 +02:00
</author>{%
2019-06-14 11:21:48 +02:00
set pages = site.query('/eisen').include_undiscoverable(true).all() %}{%
2019-06-06 17:37:56 +02: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>
<updated>{{ page.pub_date|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
<link href="{{ search }}/{{ page._id }}/" xml:base="{{ baseurl }}" />
<author>
<name>{% if page.author %}{{ page.author }}{% else %}L3D{% endif %}</name>
</author>
<content type="{% if page.xml_img %}html{% else %}text{% endif %}">
{{ page.xml }}
2019-06-14 11:21:48 +02:00
{%- if page.xml_img -%}
2019-06-06 17:37:56 +02:00
&lt;img width=&quot;23%&quot; src=&quot;{{ page.xml_img }}&quot; /&gt;
{% endif %}
2019-06-14 11:21:48 +02:00
&lt;br/&gt;&lt;a href="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" class="button special primary" download&gt;{{ page.shorttitle }} - MP3 Downloaded&lt;/a&gt;
2019-06-06 17:37:56 +02:00
</content>
2019-06-14 11:21:48 +02:00
<enclosure url="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" type="audio/mpeg" />
2019-06-06 17:37:56 +02:00
</entry>{% endif %}{%
endfor %}
</feed>