diff --git a/templates/macros/podcast.html b/templates/macros/podcast.html index 0ba50e7..853e68b 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 %}
- {{ post.podcast_teaser }} + {{ episode.podcast_teaser }} {% if not from_index %} - {{ post.podcast_shownotes }} + {{ episode.podcast_shownotes }} {% endif %}
@@ -25,44 +25,44 @@ - {{ render_blog_post(this) }} + {{ render_podcast_episode(this) }} {% endblock %} diff --git a/templates/podcast.html b/templates/podcast.html index 359dae3..9342045 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) }}