diff --git a/builder.py b/builder.py index 57db29d..b260656 100755 --- a/builder.py +++ b/builder.py @@ -23,7 +23,7 @@ FAVICON_PATH = ".static/favicon.ico" GLOBAL_CSS_PATH = ".static/global.css" DEFAULT_THEME_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), "themes", "default.css") DEFAULT_AUTHOR = "Author" -VERSION = "1.8.0" +VERSION = "1.8.1" RAW_EXTENSIONS = [".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"] IMG_EXTENSIONS = [".jpg", ".jpeg"] EXCLUDES = [".lock", "index.html", ".sizelist.json", ".thumbnails", ".static"] diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 5b075c6..acad6e3 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -152,6 +152,10 @@ var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options); gallery.init(); } + if (window.location.href.indexOf("pid=") > -1) { + var pid = window.location.href.split('pid=')[1].split('#')[0]; + openSwipe(parseInt(pid)); + } {%- endif %}