diff --git a/templates/macros/podcast.html b/templates/macros/podcast.html index 0ba50e74..853e68bc 100644 --- a/templates/macros/podcast.html +++ b/templates/macros/podcast.html @@ -1,23 +1,23 @@ -{% macro render_blog_post(post, from_index=false, section_class='-odd') %} +{% macro render_podcast_episode(episode, from_index=false, section_class='-odd') %} {% if from_index %} - {{ post.title }} + {{ episode.title }} {% else %} - {{ post.title }} + {{ episode.title }} {% endif %} - geschrieben von {{ post.authors }} am {{ post.pub_date }} + geschrieben von {{ episode.authors }} am {{ episode.pub_date }} - {{ post.podcast_teaser }} + {{ episode.podcast_teaser }} {% if not from_index %} - {{ post.podcast_shownotes }} + {{ episode.podcast_shownotes }} {% endif %} @@ -25,44 +25,44 @@ - {% if post.podcastogg -%} - + {% if episode.podcastogg -%} + {%- endif %} - {% if post.podcastmp3 -%} - + {% if episode.podcastmp3 -%} + {%- endif %} Your browser does not support the audio element. - Podcastfolge durchstöbern + Podcastfolge durchstöbern {% else -%} - {% if post.podcastogg -%} - + {% if episode.podcastogg -%} + {%- endif %} - {% if post.podcastmp3 %} - + {% if episode.podcastmp3 %} + {%- endif %} Your browser does not support the audio element. - {% if post.podcastmp3 -%} - - {%- if post.podcasttitle -%} - {{ post.podcasttitle }} + {% if episode.podcastmp3 -%} + + {%- if episode.podcasttitle -%} + {{ episode.podcasttitle }} {%- else -%} Download Folge {%- endif -%} {{ ' als MP3' }} {% endif %} - {% if post.podcastogg -%} - - {%- if post.podcasttitle -%} - {{ post.podcasttitle }} + {% if episode.podcastogg -%} + + {%- if episode.podcasttitle -%} + {{ episode.podcasttitle }} {%- else -%} Download Folge {%- endif -%} diff --git a/templates/podcast-post.html b/templates/podcast-post.html index fbbac88a..94042ef5 100644 --- a/templates/podcast-post.html +++ b/templates/podcast-post.html @@ -1,5 +1,5 @@ {% extends "header_slim.html" %} -{% from "macros/podcast.html" import render_blog_post %} +{% from "macros/podcast.html" import render_podcast_episode %} {%- block title -%}{{ this.title }}{%- endblock -%} {%- block meta_description -%} {%- if this.meta_description is defined and this.meta_description != "" -%} @@ -14,5 +14,5 @@ {{ this.title }} - {{ render_blog_post(this) }} + {{ render_podcast_episode(this) }} {% endblock %} diff --git a/templates/podcast.html b/templates/podcast.html index 359dae3b..93420452 100644 --- a/templates/podcast.html +++ b/templates/podcast.html @@ -1,5 +1,5 @@ {% extends "header_slim.html" %} -{% from "macros/podcast.html" import render_blog_post %} +{% from "macros/podcast.html" import render_podcast_episode %} {% from "macros/pagination.html" import render_pagination %} {%- block title -%}{{ this.title }}{%- endblock -%} @@ -45,8 +45,8 @@ {#- Die Podcast Folgen werden aus dem blog template importiert :P -#} - {% for blog_post in this.pagination.items %} - {{ render_blog_post(blog_post, from_index=true) }} + {% for episode in this.pagination.items %} + {{ render_podcast_episode(episode, from_index=true) }} {% endfor %} {{ render_pagination(this.pagination, true) }}
- geschrieben von {{ post.authors }} am {{ post.pub_date }} + geschrieben von {{ episode.authors }} am {{ episode.pub_date }}