diff --git a/templates/blog/section.html b/templates/blog/section.html index 30501aaa9d08d242e2607d2d504e74178bdd1cc8..0342704c3ea5b99d41b9d8587bd0f281523d25a2 100644 --- a/templates/blog/section.html +++ b/templates/blog/section.html @@ -7,7 +7,7 @@ <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 posts | slice(end=count|default(value=9)) %} + {% for post in posts | slice(end=count|default(value=6)) %} <div class="column is-one-third"> {% include "blog/card.html" %} </div> diff --git a/templates/frontpage/blog.html b/templates/frontpage/blog.html index af159e98b6c6f0a01ba72fed933d0410de95e9c8..5eec390146804659fd5766826e6d99380388d0c2 100644 --- a/templates/frontpage/blog.html +++ b/templates/frontpage/blog.html @@ -1,2 +1,10 @@ {% set blog_section = get_section(path="blog/_index.md") %} +{% set count = 3 %} {% include "blog/section.html" %} +<nav class="section pt-0"> + <div class="container"> + <a href="{{ get_url(path="@/blog/_index.md") }}" class="button is-large is-fullwidth is-link is-rounded"> + Mehr aus dem Teckids-Blog + </a> + </div> +</nav>