{% extends "header_slim_submenu.html" %} {%- block title -%}{{ this.title }}{%- endblock -%} {%- block meta_description -%} {%- if this.meta_description is defined and this.meta_description != "" -%} {{ this.meta_description }} {%- else -%} Werkkooperative der Technikfreundinnen eG {%- endif -%} {%- endblock -%} {% block body %}

{{ this.title }}

{{ this.body }}
{% set blog_posts = site.get('/blog').children.order_by('-pub_date').limit(3) %} {% set episodes = site.get('/podcast').children.order_by('-pub_date').limit(3) %} {% for post in blog_posts %}

{{ post.title }}

geschrieben von {{ post.author }}

{{ post.pub_date|dateformat('long') }}

{{ post.meta_description }}

{# Ist ein wenige hässlich, aber ich habe keine Möglichkeit gefunden ohne Schleife auf eine Episode zuzugreifen. Ziel war abwechselnd einen Blogpost und eine Episode des Podcasts zu rendern. #} {% set episodes = site.get('/podcast').children.order_by('-pub_date').offset(loop.index - 1).limit(1) %} {% for episode in episodes %}

{{ episode.title }}

geschrieben von {{ episode.authors }}

{{ episode.pub_date|dateformat('long') }}

{{ episode.podcast_teaser }}

{% endfor %} {% endfor %}
{% endblock %}