{%- extends "base.html" %} {%- block title %}{{ site.title }}{% endblock %} {%- block container %} {# Custom index page #} {%- if site.index %} {{ page.content }} {%- else %}
{%- for category in pages %} {# Only list second-level directory #} {%- if site.default_ext not in category %}

{%- if 'label' in category %}{{ category.label }} {%- else %}{{ category.name|capitalize }}{% endif %}

    {%- for page in category.pages %} {%- if site.default_ext in page.fname %}
  • {{ page.title }} {%- if 'description' in page %}   # {{ page.description }} {% endif %} {%- elif 'pages' in page %} {# for collection #}
  • [{{ page.name }}] : 
    {%- for coll_page in page.pages %} {{ coll_page.title }} {%- if 'description' in coll_page %}  {{ coll_page.description }} {% endif %} {%- if not loop.last %} / {% endif %} {%- endfor %}
    {%- endif %}
  • {%- endfor %}
{%- endif %}
{%- endfor %}
{%- endif %} {%- endblock %} {%- block script %} {%- endblock %}