28 lines
957 B
Twig
28 lines
957 B
Twig
|
|
||
|
{% extends 'partials/base.html.twig' %}
|
||
|
{% set collection = page.collection() %}
|
||
|
{% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
|
||
|
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
|
||
|
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
|
||
|
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
|
||
|
|
||
|
{% block body %}
|
||
|
<section id="body-wrapper" class="section blog-listing">
|
||
|
<section class="container {{ grid_size }}">
|
||
|
|
||
|
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||
|
{% include 'partials/breadcrumbs.html.twig' %}
|
||
|
{% endif %}
|
||
|
<div>
|
||
|
{% for child in collection %}
|
||
|
{% include 'partials/blog-list-item.html.twig' with {blog: page, page : child %}
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
|
||
|
</section>
|
||
|
</section>
|
||
|
{% endblock %}
|
||
|
|
||
|
|
||
|
|