diff --git a/templates/pages/content.html b/templates/pages/content.html index 0e4ef05159f6d5b0e7c7030eea5f08dd642211f1..701ce94ed363bcb3a937d200674e15ea3e0e56c7 100644 --- a/templates/pages/content.html +++ b/templates/pages/content.html @@ -17,4 +17,5 @@ {% endblock content %} </div> </section> + {% include "pages/related_posts.html" %} {% endblock %} diff --git a/templates/pages/raw.html b/templates/pages/raw.html index e2d9395c41d8ef2be2c04a98e06c500d1d9df166..085595c5cf71fd3977a19b4e0e23f042baa0a3f3 100644 --- a/templates/pages/raw.html +++ b/templates/pages/raw.html @@ -2,4 +2,5 @@ {% block main %} {{ page.content | safe }} + {% include "pages/related_posts.html" %} {% endblock %} diff --git a/templates/pages/related_posts.html b/templates/pages/related_posts.html new file mode 100644 index 0000000000000000000000000000000000000000..26fafd9b5120fb0eeef78791dd167dcd9370af87 --- /dev/null +++ b/templates/pages/related_posts.html @@ -0,0 +1,16 @@ +{% 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>