Skip to content
Snippets Groups Projects
Commit 3dde6ffb authored by magicfelix's avatar magicfelix
Browse files

Do not show related posts on blog posts

parent a1e52224
Branches
No related tags found
1 merge request!74Resolve "Tag blog posts with projects, target groups, and maybe tags"
Pipeline #193017 passed
......@@ -37,6 +37,7 @@
</div>
</div>
</div>
{% block related_posts %}{% endblock %}
</div>
</div>
{% endblock %}
......@@ -17,5 +17,14 @@
{% endblock content %}
</div>
</section>
{% include "pages/related_posts.html" %}
{% block related_posts %}
{% 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>
{% include "pages/related_posts.html" %}
</div>
</section>
{% endblock %}
{% 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>
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment