diff --git a/generate_html.py b/generate_html.py index ac73c3f..ba7522d 100755 --- a/generate_html.py +++ b/generate_html.py @@ -9,17 +9,14 @@ from pathlib import Path import numpy as np from tqdm.auto import tqdm -""" -root and webroot must point to the same folder, one on filesystem and one on the webserver. Use absolut paths, e.g. /data/pictures/ and https://pictures.example.com/ -""" - _ROOT = "/data/pictures/" _WEBROOT = "https://pictures.example.com/" _FOLDERICON = "https://www.svgrepo.com/show/400249/folder.svg" _ROOTTITLE = "Pictures" +_FAVICON = "favicon.ico" imgext = [".jpg", ".jpeg"] rawext = [".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr", ".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos", ".mrw", ".nef", ".nrw", ".obm", ".orf", ".pef", ".ptx", ".pxn", ".r3d", ".raf", ".raw", ".rwl", ".rw2", ".rwz", ".sr2", ".srf", ".srw", ".tif", ".tiff", ".x3f"] -excludes = [".lock", "index.html", "Galleries", ".previews", "Archives"] +excludes = [".lock", "favicon.ico", "index.html", "Galleries", ".previews", "Archives"] thumbnails: list[tuple[str, str]] = [] @@ -30,6 +27,7 @@ HTMLHEADER = """