mapsalle.html.twig 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends 'partials/base.html.twig' %}
  2. {% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
  3. {% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
  4. {% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
  5. {% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
  6. {% set hero_image_name = page.header.hero_image %}
  7. {% block hero %}
  8. {% if hero_image_name %}
  9. {% set hero_image = page.media[hero_image_name] %}
  10. {% set content %}
  11. <h1>{{ page.title }}</h1>
  12. <h2>{{ page.header.subtitle }}</h2>
  13. {% include 'partials/blog/date.html.twig' %}
  14. {% include 'partials/blog/taxonomy.html.twig' %}
  15. {% endset %}
  16. {% include 'partials/hero.html.twig' with {id: 'blog-hero'} %}
  17. {% endif %}
  18. {% endblock %}
  19. {% block body %}
  20. {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
  21. {% include 'partials/breadcrumbs.html.twig' %}
  22. {% endif %}
  23. {% embed 'partials/layout.html.twig' %}
  24. {% block item %}
  25. <div class="content">
  26. <h2>{{page.title}}</h2>
  27. {{content}}
  28. </div>
  29. {% endblock %}
  30. {% endembed %}
  31. {% for child in page.collection %}
  32. {{child.content}}
  33. {% endfor %}
  34. {% endblock %}