mapsalle.html.twig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <div class="txt">
  27. <h2>{{page.title}}</h2>
  28. {{content}}
  29. </div>
  30. </div>
  31. {% endblock %}
  32. {% endembed %}
  33. {% for child in page.collection %}
  34. {{child.content}}
  35. {% endfor %}
  36. {% endblock %}