123456789101112131415161718192021222324 |
- {% set feed_url = blog.url == '/' or blog.url == base_url_relative ? (base_url_relative~'/'~blog.slug) : blog.url %}
- {% set new_base_url = blog.url == '/' ? '' : blog.url %}
- <div class="sidebar-left">
- {% set options = { items: {'@page': '/contact' } } %}
- {% set my_collection = page.collection(options) %}
- <ul>
- {% for p in my_collection %}
- <a href="{{p.url}}"><li>{{ p.title }}</li></a>
- {% endfor %}
- </ul>
- </div>
- <div class="sidebar-right">
- {% set options = { items: {'@page': '/projets' } } %}
- {% set my_collection = page.collection(options) %}
- <ul>
- {% include 'partials/taxonomylist.html.twig' with {'base_url': new_base_url, 'taxonomy':'category'} %}
- <!-- {% for i in my_collection %}
- <li>{{i.title}}</li>
- {% endfor %} -->
- </ul>
- </div>
|