Skip to content
Snippets Groups Projects
Commit 6ee89a1b authored by magicfelix's avatar magicfelix
Browse files

Show related blog posts on pages

parent 1e5c8980
No related branches found
No related tags found
1 merge request!74Resolve "Tag blog posts with projects, target groups, and maybe tags"
......@@ -17,4 +17,5 @@
{% endblock content %}
</div>
</section>
{% include "pages/related_posts.html" %}
{% endblock %}
......@@ -2,4 +2,5 @@
{% block main %}
{{ page.content | safe }}
{% 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 "aspekt" in post.taxonomies and page.title in post.taxonomies["aspekt"] %}
<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