{% extends 'layout.html' %} {% block js %} {% endblock %} {% block body %}

Index of / {%- set parts = path.split('/') -%} {%- for dir in parts if dir -%} {{ dir }}/ {%- endfor -%}

{% for file in index %} {% if file['dir'] %} {% else %} {% endif %} {% endfor %}
Name Modified
Dir {{ file['name'][path|length:] }}Page {{ file['name'][path|length:] }} {{ file['ctime']|datetime }}
{% endblock %}