diff --git a/builder.py b/builder.py index eb08ce2..ccdb7f7 100755 --- a/builder.py +++ b/builder.py @@ -19,7 +19,7 @@ from modules.generate_html import list_folder, EXCLUDES # Constants STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files") SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) -VERSION = "2.2.0" +VERSION = "2.2.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", diff --git a/modules/generate_html.py b/modules/generate_html.py index 266c493..d3efe4c 100644 --- a/modules/generate_html.py +++ b/modules/generate_html.py @@ -11,6 +11,7 @@ from jinja2 import Environment, FileSystemLoader import modules.cclicense as cclicense from modules.argumentparser import Args +from builder import VERSION # Constants for file paths and exclusions FAVICON_PATH = ".static/favicon.ico" @@ -295,6 +296,7 @@ def create_html_file( info=_info, allimages=images, webmanifest=_args.generate_webmanifest, + version=VERSION, ) with open(os.path.join(folder, "index.html"), "w", encoding="utf-8") as f: diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 641be66..db53a0a 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -44,7 +44,7 @@