blob: ded3402e253146b549633b25e09a96c7e1a2282d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{# inputs: page, list, section, text #}
{text:'{{ text }}',url:'{{ page.fileName }}{{ section }}{{ config.HTML_FILE_EXTENSION }}'
{% if list|length>maxItemsForMultiPageList %}
,children:[
{% with index=list|alphaIndex:'name' %}
{% for sect in index %}
{text:'{{ sect.letter }}',url:'{{ page.fileName }}{{ section }}_{{ sect.label }}{{ config.HTML_FILE_EXTENSION }}'}{% if not forloop.last %},{% endif %}
{% endfor %}
{% endwith %}
]
{% endif %}
}
|