From a6fb09985b1c2c6d3452eee574105eb694e27bb4 Mon Sep 17 00:00:00 2001 From: muli Date: Wed, 24 Aug 2022 22:19:50 +0200 Subject: [PATCH] fix: Changed naming in podcast makros because a podcast is not a blog. --- templates/macros/podcast.html | 46 +++++++++++++++++------------------ templates/podcast-post.html | 4 +-- templates/podcast.html | 6 ++--- 3 files changed, 28 insertions(+), 28 deletions(-) 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) }}