2022-08-24 22:19:50 +02:00
|
|
|
{% macro render_podcast_episode(episode, from_index=false, section_class='-odd') %}
|
2021-03-31 02:08:49 +02:00
|
|
|
<section class="content {{ section_class }}">
|
|
|
|
<div class="content__box -heading">
|
|
|
|
<div class="content__inner_box">
|
|
|
|
{% if from_index %}
|
2022-08-24 22:19:50 +02:00
|
|
|
<h2><a class="content__blog_link {{ section_class }}" href="{{ episode|url }}">{{ episode.title }}</a></h2>
|
2021-03-31 02:08:49 +02:00
|
|
|
{% else %}
|
2022-08-24 22:19:50 +02:00
|
|
|
<h2>{{ episode.title }}</h2>
|
2021-03-31 02:08:49 +02:00
|
|
|
{% endif %}
|
|
|
|
<hr class="{{ section_class }}">
|
|
|
|
<p class="content__meta">
|
2022-08-24 22:34:04 +02:00
|
|
|
<i>aufgenommen von {{ episode.authors }}, veröffentlicht am {{ episode.pub_date }}</i>
|
2021-03-31 02:08:49 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-06 18:24:25 +02:00
|
|
|
<div class="content__half_box">
|
|
|
|
<div class="content__inner_half_box">
|
2022-08-24 22:19:50 +02:00
|
|
|
{{ episode.podcast_teaser }}
|
2021-04-06 18:24:25 +02:00
|
|
|
{% if not from_index %}
|
2022-08-24 22:19:50 +02:00
|
|
|
{{ episode.podcast_shownotes }}
|
2021-04-06 18:24:25 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-03-31 02:08:49 +02:00
|
|
|
|
2021-04-06 18:24:25 +02:00
|
|
|
{% if from_index -%}
|
|
|
|
<div class="content__inner_half_box">
|
|
|
|
<div class="pod_ctrl_box">
|
|
|
|
<audio controls class="pod_ctrl_box__audio_controls">
|
2022-08-24 22:19:50 +02:00
|
|
|
{% if episode.podcastogg -%}
|
|
|
|
<source src="{{ episode|url(alt='de')}}{{ episode.podcastogg }}" type="audio/ogg">
|
2021-04-06 18:24:25 +02:00
|
|
|
{%- endif %}
|
2022-08-24 22:19:50 +02:00
|
|
|
{% if episode.podcastmp3 -%}
|
|
|
|
<source src="{{ episode|url(alt='de') }}{{ episode.podcastmp3 }}" type="audio/mpeg">
|
2021-04-06 18:24:25 +02:00
|
|
|
{%- endif %}
|
|
|
|
Your browser does not support the audio element.
|
2021-03-31 02:08:49 +02:00
|
|
|
</audio>
|
2021-04-06 18:24:25 +02:00
|
|
|
<div class="pod_ctrl_box__button">
|
2022-08-24 22:19:50 +02:00
|
|
|
<a class="pod_ctrl_box__button_link" href="{{ episode|url }}" >Podcastfolge durchstöbern</a>
|
2021-04-06 18:24:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else -%}
|
|
|
|
<div class="content__inner_half_box">
|
|
|
|
<audio controls>
|
2022-08-24 22:19:50 +02:00
|
|
|
{% if episode.podcastogg -%}
|
|
|
|
<source src="{{ episode.podcastogg|url(alt='de') }}" type="audio/ogg">
|
2021-03-31 02:08:49 +02:00
|
|
|
{%- endif %}
|
2022-08-24 22:19:50 +02:00
|
|
|
{% if episode.podcastmp3 %}
|
|
|
|
<source src="{{ episode.podcastmp3|url(alt='de') }}" type="audio/mpeg">
|
2021-03-31 02:08:49 +02:00
|
|
|
{%- endif %}
|
|
|
|
Your browser does not support the audio element.
|
2021-04-06 18:24:25 +02:00
|
|
|
</audio>
|
|
|
|
<br/>
|
2022-08-24 22:19:50 +02:00
|
|
|
{% if episode.podcastmp3 -%}
|
|
|
|
<a class="" href="{{ episode.podcastmp3|url(alt='de') }}" download>
|
|
|
|
{%- if episode.podcasttitle -%}
|
|
|
|
{{ episode.podcasttitle }}
|
2021-04-06 18:24:25 +02:00
|
|
|
{%- else -%}
|
|
|
|
Download Folge
|
|
|
|
{%- endif -%}
|
|
|
|
{{ ' als MP3' }}
|
|
|
|
</a>
|
2021-03-31 02:08:49 +02:00
|
|
|
{% endif %}
|
2022-08-24 22:19:50 +02:00
|
|
|
{% if episode.podcastogg -%}
|
|
|
|
<a class="" href="{{ episode.podcastogg|url(alt='de') }}" download>
|
|
|
|
{%- if episode.podcasttitle -%}
|
|
|
|
{{ episode.podcasttitle }}
|
2021-04-06 18:24:25 +02:00
|
|
|
{%- else -%}
|
|
|
|
Download Folge
|
|
|
|
{%- endif -%}
|
|
|
|
{{ ' als OGG' }}
|
|
|
|
</a>
|
2021-03-31 02:08:49 +02:00
|
|
|
{% endif %}<br/>
|
2021-04-06 18:24:25 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-03-31 02:08:49 +02:00
|
|
|
</div>
|
2021-04-05 20:43:06 +02:00
|
|
|
</section>
|
2021-03-31 02:08:49 +02:00
|
|
|
{% endmacro %}
|