diff --git a/photogallery.py b/photogallery.py index 595dfe3..51efd83 100644 --- a/photogallery.py +++ b/photogallery.py @@ -67,7 +67,7 @@ body.noscrollbar::-webkit-scrollbar } body.noscrollbar { - scrollbar-width: none; + scrollbar-width: 0; } header @@ -286,6 +286,10 @@ pre,

Click each photo to view its full resolution. Click the number to download it.

+ {% for zip in zipz %} +

Click here to download {{zip.basename}}

+ {% endfor %} + {% for file in files %} {% if file.extension == 'jpg' %}
@@ -438,7 +442,10 @@ document.addEventListener("DOMContentLoaded", on_pageload); ''') def imagegallery(files, title, urlroot, with_download_links): + zipz = [f for f in files if f.extension == 'zip'] + files = [f for f in files if f.extension != 'zip'] html = TEMPLATE.render( + zipz=zipz, files=files, title=title, urlroot=urlroot,