Skip to content
Snippets Groups Projects
Commit 6603c5ad authored by magicfelix's avatar magicfelix
Browse files

Show related blog posts on pages

parent 1e5c8980
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !74. Comments created here will be created in the context of that merge request.
......@@ -17,4 +17,6 @@
{% endblock content %}
</div>
</section>
{% set related_taxonomy="aspekte" %}
{% include "pages/related_posts.html" %}
{% endblock %}
......@@ -2,4 +2,6 @@
{% block main %}
{{ page.content | safe }}
{% set related_taxonomy="produkte" %}
{% include "pages/related_posts.html" %}
{% endblock %}
{% set blog_section = get_section(path="blog/_index.md") %}
<section class="section" resource="{{ blog_section.permalink }}" typeof="schema:Blog">
<meta property="schema:publisher" href="https://teckids.org/" />
<div class="container">
<h2 class="title is-2">{{ title | default(value="Aus dem Teckids-Blog") }}</h2>
<div class="columns is-multiline is-same-height mt-4">
{% for post in blog_section.pages %}
{% if related_taxonomy in post.taxonomies and page.title in post.taxonomies[related_taxonomy] %}
<div class="column is-one-third">
{% include "blog/card.html" %}
</div>
{% else %}{% continue %}{% endif %}
{% endfor %}
</div>
</div>
</section>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment