templates/pages/sitemap.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block content %}
  3.     <div class="main-container w100 plr-1em">
  4.         {% macro render_page(page) %}
  5.             <li class="pl-10px mb-10px">
  6.                 <a href="{{ page.url }}">{{ page.title }}</a>
  7.                 {% if page.children %}
  8.                     <ul class="pl-10px mt-10px">
  9.                         {% for child in page.children %}
  10.                             {{ _self.render_page(child) }}
  11.                         {% endfor %}
  12.                     </ul>
  13.                 {% endif %}
  14.             </li>
  15.         {% endmacro %}
  16.         {% set siteMap = sulu_sitemap() %}
  17.         <div class="{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} dflex aic jcc prelative homepage-header mb-40px">
  18.             <div class="w100">
  19.                 <div class="center mb-2em">
  20.                     <h1>{{ content.page_title }}</h1>
  21.                     {% if content.chapo is defined and content.chapo is not empty %}
  22.                         <div>{{ content.chapo|raw }}</div>
  23.                     {% endif %}
  24.                 </div>
  25.                 <div class="mt-80px ml-40per">
  26.                     <ul>
  27.                         {{ _self.render_page(siteMap) }}
  28.                     </ul>
  29.                 </div>
  30.             </div>
  31.         </div>
  32.     </div>
  33. {% endblock %}