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
No related branches found
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 @@ ...@@ -37,6 +37,7 @@
</div> </div>
</div> </div>
</div> </div>
{% block related_posts %}{% endblock %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
...@@ -17,5 +17,14 @@ ...@@ -17,5 +17,14 @@
{% endblock content %} {% endblock content %}
</div> </div>
</section> </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 %} {% endblock %}
{% set blog_section = get_section(path="blog/_index.md") %} {% set blog_section = get_section(path="blog/_index.md") %}
<section class="section" resource="{{ blog_section.permalink }}" typeof="schema:Blog"> <div class="columns is-multiline is-same-height mt-4">
<meta property="schema:publisher" href="https://teckids.org/" /> {% for post in blog_section.pages %}
<div class="container"> {% if "aspekt" in post.taxonomies and page.title in post.taxonomies["aspekt"] %}
<h2 class="title is-2">{{ title | default(value="Aus dem Teckids-Blog") }}</h2> <div class="column is-one-third">
<div class="columns is-multiline is-same-height mt-4"> {% include "blog/card.html" %}
{% for post in blog_section.pages %} </div>
{% if "aspekt" in post.taxonomies and page.title in post.taxonomies["aspekt"] %} {% else %}{% continue %}{% endif %}
<div class="column is-one-third"> {% endfor %}
{% include "blog/card.html" %} </div>
</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