add: gallery

fix: blog
This commit is contained in:
Tobias Reisinger 2020-01-03 13:36:14 +01:00
parent c9def51b7e
commit 188bac429d
10 changed files with 255 additions and 74 deletions

View file

@ -7,14 +7,17 @@
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
{% block content %}
{{ page.content }}
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %}
{% for child in collection %}
{% if not loop.first %}
<hr class="my-5">
{% if loop.first %}
<hr class="mb-4 mt-1">
{% else %}
<hr class="my-4">
{% endif %}
{% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
{% endfor %}