sidebar.html.twig 790 B

123456789101112131415161718192021222324
  1. {% set feed_url = blog.url == '/' or blog.url == base_url_relative ? (base_url_relative~'/'~blog.slug) : blog.url %}
  2. {% set new_base_url = blog.url == '/' ? '' : blog.url %}
  3. <div class="sidebar-left">
  4. {% set options = { items: {'@page': '/contact' } } %}
  5. {% set my_collection = page.collection(options) %}
  6. <ul>
  7. {% for p in my_collection %}
  8. <a href="{{p.url}}"><li>{{ p.title }}</li></a>
  9. {% endfor %}
  10. </ul>
  11. </div>
  12. <div class="sidebar-right">
  13. {% set options = { items: {'@page': '/projets' } } %}
  14. {% set my_collection = page.collection(options) %}
  15. <ul>
  16. {% include 'partials/taxonomylist.html.twig' with {'base_url': new_base_url, 'taxonomy':'category'} %}
  17. <!-- {% for i in my_collection %}
  18. <li>{{i.title}}</li>
  19. {% endfor %} -->
  20. </ul>
  21. </div>