From d6cd11ed4490761cf5117ddd834e4772a6789dbe Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 6 Apr 2021 19:31:00 +0200 Subject: [PATCH] Added the latest 3 podcast episodes the the "Aktuelles" submenu. --- templates/header_slim.html | 12 ++++++++++++ templates/header_with_logo.html | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/templates/header_slim.html b/templates/header_slim.html index 320859f..15a070f 100644 --- a/templates/header_slim.html +++ b/templates/header_slim.html @@ -69,6 +69,18 @@ {% endif %} {% endfor %} {% endif %} + {% if sub_title == 'Podcast' %} + {% set children = site.get(href).children %} + {% for child in children %} + {% if loop.index <= 3 %} +
  • + + {{ child.title }} + +
  • + {% endif %} + {% endfor %} + {% endif %} {% endfor %} {% endif %} diff --git a/templates/header_with_logo.html b/templates/header_with_logo.html index c3feaf4..3ca4214 100644 --- a/templates/header_with_logo.html +++ b/templates/header_with_logo.html @@ -69,6 +69,18 @@ {% endif %} {% endfor %} {% endif %} + {% if sub_title == 'Podcast' %} + {% set children = site.get(href).children %} + {% for child in children %} + {% if loop.index <= 3 %} +
  • + + {{ child.title }} + +
  • + {% endif %} + {% endfor %} + {% endif %} {% endfor %} {% endif %}