From c429cd06c8ddfb2ae56e645c2a58fcbe342a33ec Mon Sep 17 00:00:00 2001 From: Flo Greistorfer Date: Sun, 20 Oct 2024 10:41:12 +0200 Subject: [PATCH] prefetch images --- modules/generate_html.py | 1 - templates/index.html.j2 | 23 +++++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/modules/generate_html.py b/modules/generate_html.py index 68ebd21..7f89f0e 100644 --- a/modules/generate_html.py +++ b/modules/generate_html.py @@ -346,7 +346,6 @@ def create_html_file(folder: str, title: str, foldername: str, images: List[Dict subdirectories=subfolders, images=images, info=_info, - allimages=images, webmanifest=_args.generate_webmanifest, version=version, ) diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 8a77d64..5df0090 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -12,10 +12,6 @@ {%- if theme %} {%- endif %} - - - - {%- if theme %} @@ -30,6 +26,10 @@ + + + +
{% if subdirectories %} + {%- for subdirectory in subdirectories %} + + {%- endfor %}