1234567891011121314151617181920212223242526272829303132333435 |
- {% set options = { items: {'@page.children':blog.url}, 'order': {'by': 'folder', 'dir': 'asc'}} %}
- {% set my_collection = blog.collection(options) %}
- <ul>
- {% for child in collection %}
- {% if child.template == "default" or child.template == "archives" or child.template == "modular" or child.template == "form"%}
- <li><a href="{{child.url}}">{{child.title}}</a></li>
- {% endif %}
- {% endfor %}
- {% if blog.template == 'blog' and blog.title != "News" %}
- <a href="{{blog.url}}">Current + Upcomming</a>
- {% endif %}
- {% if blog.template == "default" %}
- {% for item in my_collection %}
- <a href= "{{item.url}}" >{{item.title}}</a>
- {% endfor %}
- {% endif %}
- {% if blog.title == "News" %}
- <li><a href="{{blog.url}}">{{blog.title}}</a></li>
- {% endif %}
- {% if blog.parent.template == "blog" %}
- <li>
- <a href="{{blog.parent.url}}">Current + Upcomming</a>
- </li>
- <li>
- <a href="{{blog.url}}">{{blog.title}}</a>
- </li>
- {{blog.parent.template}}
- {% endif %}
- </ul>
|