improve RSS Feed
This commit is contained in:
parent
9ba6bf45b2
commit
d42e89f18b
1 changed files with 70 additions and 64 deletions
|
@ -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 & 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 -%}
|
<img width="23%" src="{{ page.xml_img }}" />
|
||||||
<img width="23%" src="{{ page.xml_img }}" />
|
{% endif %}
|
||||||
{% endif %}
|
<br/><a href="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" class="button special primary" download>{{ page.shorttitle }} - MP3 Downloaded</a>
|
||||||
<br/><a href="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" class="button special primary" download>{{ page.shorttitle }} - MP3 Downloaded</a>
|
</content>
|
||||||
</content>
|
{# #} </item>
|
||||||
<enclosure url="{{ baseurl }}{{ page|url }}{{ page.podcastmp3 }}" type="audio/mpeg" />
|
{%- endif -%}
|
||||||
</entry>{% endif %}{%
|
{%- endfor %}
|
||||||
endfor %}
|
</channel>
|
||||||
</feed>
|
</rss>
|
||||||
|
|
Loading…
Reference in a new issue