You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
{% extends 'partials/base.html.twig' %}
|
|
{% set blog = page.find(theme_var('blog-page')|default('/blog')) %}
|
|
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
|
|
{% set show_sidebar = header_var('show_sidebar', [page, blog]) %}
|
|
{% set show_pagination = header_var('show_pagination', [page, blog]) %}
|
|
{% set hero_image_name = page.header.hero_image %}
|
|
|
|
{% block hero %}
|
|
{% if hero_image_name %}
|
|
{% set hero_image = page.media[hero_image_name] %}
|
|
{% set content %}
|
|
<h1>{{ page.title }}</h1>
|
|
<h2>{{ page.header.subtitle }}</h2>
|
|
{% include 'partials/blog/date.html.twig' %}
|
|
{% include 'partials/blog/taxonomy.html.twig' %}
|
|
{% endset %}
|
|
{% include 'partials/hero.html.twig' with {id: 'blog-hero'} %}
|
|
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% 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 %}
|
|
|
|
{% embed 'partials/layout.html.twig' %}
|
|
{% block item %}
|
|
{% include 'partials/blog-item.html.twig' %}
|
|
{% endblock %}
|
|
{% block sidebar %}
|
|
{% include 'partials/sidebar.html.twig' %}
|
|
{% endblock %}
|
|
{% endembed %}
|
|
|
|
</section>
|
|
</section>
|
|
{% endblock %}
|
|
|