improve RSS Feed

This commit is contained in:
L3D 2019-06-27 21:42:02 +02:00
parent 9ba6bf45b2
commit d42e89f18b
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
{%- set baseurl = "https://podcast.c3woc.de/" %}{% {%- set baseurl = "https://podcast.c3woc.de" %}
set search = "eisen" %} {%- set search = "eisen" %}
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel> <channel>
<title type="text"> <title type="text">
@ -9,68 +9,74 @@ set search = "eisen" %}
{%- else -%} {%- else -%}
Das heisse Eisen Das heisse Eisen
{%- endif -%}</title> {%- endif -%}</title>
<link>{{ baseurl }}</link> <link>{{ baseurl }}/</link>
<id>{{ baseurl }}podcast-he.xml</id> <id>{{ baseurl }}/podcast-he.xml</id>
<description>Der Waffelpodcast: 'Das heisse Eisen'. Mit Venty und L3D.</description> <description>
<generator>Von Hand als jinja2 template geschrieben</generator> {%- if bag('translate', this.alt, 'hefeed_description') -%}
{{ bag('translate', this.alt, 'hefeed_description') }}
{%- else -%}
Der Waffelpodcast: 'Das heisse Eisen'. Mit Venty und L3D.
{%- endif -%}
</description>
<generator>Von Hand als Jinja2 Template von L3D geschrieben</generator>
<language>de</language> <language>de</language>
<copyright>L3D</copyright> <copyright>L3D</copyright>
<updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated> <updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
<pubDate>Wed, 07 Mar 2007 16:48:22 +0100</pubDate> {%- set pages = site.query('/eisen').include_undiscoverable(true).all() -%}
<lastBuildDate>Wed, 07 Mar 2007 16:48:22 +0100</lastBuildDate> {%- for page in pages -%}
<itunes:author>Martin Ebnoether</itunes:author> {%- if not page._hidden %}
<itunes:subtitle>Ventys Podcast</itunes:subtitle> {# #} <pubDate>2019-</pubDate>
<itunes:summary>Das ist der Podcast von Ventilator</itunes:summary> {# #} <lastBuildDate>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</lastBuildDate>
<itunes:keywords>Venty, Ventilator, Semmel, Podcast</itunes:keywords> {# #} <itunes:author>L3D</itunes:author>
<itunes:explicit>no</itunes:explicit> {# #} <itunes:subtitle>Ventys Podcast</itunes:subtitle>
<itunes:owner> {# #} <itunes:summary>
<itunes:name>Martin Ebnoether</itunes:name> {%- if bag('translate', this.alt, 'hefeed_description') -%}
<itunes:email>ventilator@semmel.ch</itunes:email> {{ bag('translate', this.alt, 'hefeed_description') }}
</itunes:owner> {%- else -%}
<itunes:new-feed-url>http://www.semmel.ch/podcast/der-podcast.xml</itunes:new-feed-url> Der Waffelpodcast: 'Das heisse Eisen'. Mit Venty und L3D.
<itunes:block>no</itunes:block> {%- endif -%}
<itunes:category text="Society &amp; Culture"> </itunes:summary>
<itunes:category text="Personal Journals"/> {# #} <itunes:keywords>
</itunes:category> {%- if bag('translate', this.alt, 'hefeed_keywords') -%}
<item> {{ bag('translate', this.alt, 'hefeed_keywords') }}
<title>Folge 001 - Start mit Hindernissen!</title> {%- else -%}
<link>http://www.semmel.ch/podcast/Podcast-Folge-001.mp3</link> Waffel, C3WOC, CCC, Chaos, Waffle, Waffles, Waffeln, VOC, WOC, Operation, Center
<author>ventilator@semmel.ch</author> {%- endif -%}
<pubDate>Wed, 22 Nov 2006 21:23:17 +0100</pubDate> </itunes:keywords>
<enclosure url="http://www.semmel.ch/podcast/Podcast-Folge-001.mp3" length="2307405" type="audio/mpeg"/> {# #} <itunes:explicit>no</itunes:explicit>
<guid isPermaLink="false">Venty-001</guid> {# #} <itunes:owner>
<itunes:explicit>no</itunes:explicit> {# #} <itunes:name>L3D</itunes:name>
</item> {# #} <itunes:email>l3d@c3woc.de</itunes:email>
{# #} </itunes:owner>
{# #} <itunes:new-feed-url>{{ baseurl }}/podcast-he.xml</itunes:new-feed-url>
{# #} <itunes:block>no</itunes:block>
{# #} <itunes:category text="Waffel">
{# #} <itunes:category text="Chaos"/>
{# #} <itunes:category text="CCC"/>
<link href="{{ baseurl }}{{ search }}/" /> {# #} </itunes:category>
<link href="{{ baseurl }}podcast-he.xml" rel="self" /> {# #} <item>
<author> {# #} <title>{{ page.title }}</title>
<name>{% if this.author %}{{ this.author }}{% else %}Venty und L3D{% endif %}</name> {# #} <link>{{ baseurl }}/{{ search }}/{{ page._id }}/</link>
</author>{% {# #} <author>
set pages = site.query('/eisen').include_undiscoverable(true).all() %}{% {%- if page.author -%}
for page in pages %}{% if not page._hidden %} {{ page.author }}
<entry xml:base="{{ baseurl }}{{ search }}/{{ page._id }}/"> {%- else -%}
<title type="text">{{ page.title }}</title> L3D und Venty
<id>{{ baseurl }}{{ search }}/{{ page._id }}</id> {%- endif -%}
<updated>{{ page.pub_date|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated> </author>
<link href="{{ search }}/{{ page._id }}/" xml:base="{{ baseurl }}" /> {# #} <pubDate>{{ page.pub_date|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</pubDate>
<author> {# #} <enclosure url="{{ baseurl }}/{{ search }}/{{ page._id }}/{{ page.podcastmp3 }}" length="2307405" type="audio/mpeg"/>
<name>{% if page.author %}{{ page.author }}{% else %}L3D{% endif %}</name> {# #} <guid isPermaLink="false">{{ page._id }}</guid>
</author> {# #} <itunes:explicit>no</itunes:explicit>
{#- <content type="{% if page.xml_img %}html{% else %}text{% endif %}"> #} {# #} <content type="{% if page.xml_img %}html{% else %}text{% endif %}">
<content type="html"> {{ page.xml }}
{{ page.xml }} {%- if page.xml_img -%}
{%- if page.xml_img -%} &lt;img width=&quot;23%&quot; src=&quot;{{ page.xml_img }}&quot; /&gt;
&lt;img width=&quot;23%&quot; src=&quot;{{ page.xml_img }}&quot; /&gt; {% endif %}
{% endif %} &lt;br/&gt;&lt;a href="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" class="button special primary" download&gt;{{ page.shorttitle }} - MP3 Downloaded&lt;/a&gt;
&lt;br/&gt;&lt;a href="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" class="button special primary" download&gt;{{ page.shorttitle }} - MP3 Downloaded&lt;/a&gt; </content>
</content> {# #} </item>
<enclosure url="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" type="audio/mpeg" /> {%- endif -%}
</entry>{% endif %}{% {%- endfor %}
endfor %} </channel>
</feed> </rss>