123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {% extends 'partials/base.html.twig' %}
- {% 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) %}
- {% 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 %}
- {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
- {% include 'partials/breadcrumbs.html.twig' %}
- {% endif %}
- {% embed 'partials/layout.html.twig' %}
- {% block item %}
- <div class="content">
- <div class="txt">
- <h2>{{page.title}}</h2>
- {{content}}
- </div>
- </div>
- {% endblock %}
- {% endembed %}
- {% for child in page.collection %}
- {{child.content}}
- {% endfor %}
- {% endblock %}
|