diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..7e815e2 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} +{% block content %} + +<p>{{ description }}</p> + +{% if dirs %} +<h3>Topics</h3> +{% for d in dirs %} +<li><a href="{{ cur_dir }}{{ d }}">{{ d }}</a></li> +{% endfor %} +{% endif %} + +{% if files %} +<h3>File Listing</h3> +{% for f in files %} +<li><a href="{{ cur_dir }}{{ f }}">{{ f }}</a></li> +{% endfor %} +{% endif %} + +{% if links %} +{% for l in links %} +<li><a href="{{ l.split(',')[1] }}" target="_blank" rel="noopener noreferrer">{{l.split(',')[0]}}</a></li> +{% endfor %} +{% endif %} + +{% endblock %} |