forked from david-swift/duckling
29 lines
737 B
HTML
29 lines
737 B
HTML
{%- if page %}
|
|
{% set slug = page.slug %}
|
|
{%- else %}
|
|
{% set slug = "" %}
|
|
{%- endif %}
|
|
|
|
<div id="docs">
|
|
<ul>
|
|
{%- for page in section.pages %}
|
|
{%- if page.extra.section == 0 %}
|
|
<li>
|
|
<a class="{%- if slug == page.slug -%}active{%- endif -%}" href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
|
</li>
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{%- for section in section.extra.sections %}
|
|
{% set int_section = loop.index %}
|
|
<h3>{{ section }}</h3>
|
|
{%- for page in section.pages %}
|
|
{%- if page.extra.section == int_section %}
|
|
<li>
|
|
<a class="{%- if slug == page.slug -%}active{%- endif -%}" href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
|
</li>
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|