added version to footer

This commit is contained in:
2024-07-14 22:27:18 +02:00
parent 61c9094565
commit b73a0d6db1
3 changed files with 9 additions and 7 deletions

View File

@@ -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",

View File

@@ -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:

View File

@@ -44,7 +44,7 @@
<div class="folders">
{%- for subdirectory in subdirectories %}
<figure>
<a href="{{ subdirectory.url }}"><img class="foldericon"/></a>
<a href="{{ subdirectory.url }}"><img class="foldericon" /></a>
<figcaption><a href="{{ subdirectory.url }}">{{ subdirectory.name }}</a></figcaption>
</figure>
{%- endfor %}
@@ -92,14 +92,14 @@
{%- endfor %}
</a>
{%- endif %}
<span class="attribution">Made with <a href="https://github.com/greflm13/StaticGalleryBuilder" target="_blank">StaticGalleryBuilder</a></a> by <a href="https://github.com/greflm13"
<span class="attribution">Made with <a href="https://github.com/greflm13/StaticGalleryBuilder" target="_blank">StaticGalleryBuilder {{ version }}</a> by <a href="https://github.com/greflm13"
target="_blank">Flo Greistorfer</a>.</span>
<button onclick="topFunction()" id="totop" title="Back to Top">Back to Top</button>
</div>
{%- endif %}
{%- else %}
<div class="footer">
<span class="attribution">Made with <a href="https://github.com/greflm13/StaticGalleryBuilder" target="_blank" rel="noopener noreferrer">StaticGalleryBuilder</a></a> by <a
<span class="attribution">Made with <a href="https://github.com/greflm13/StaticGalleryBuilder" target="_blank" rel="noopener noreferrer">StaticGalleryBuilder {{ version }}</a> by <a
href="https://github.com/greflm13"
target="_blank" rel="noopener noreferrer">Flo Greistorfer</a>.</span>
<button onclick="topFunction()" id="totop" title="Back to Top">Back to Top</button>
@@ -145,9 +145,9 @@
<script>
var pswpElement = document.querySelectorAll('.pswp')[0];
var items = [
{%- for image in allimages %}
{ src: "{{ image.url }}", w: {{ image.width }}, h: {{ image.height }}, msrc: "{{ image.thumbnail }}" },
{%- endfor %}
{% - for image in allimages %}
{ src: "{{ image.url }}", w: { { image.width } }, h: { { image.height } }, msrc: "{{ image.thumbnail }}" },
{% - endfor %}
];
var re = /pid=(\d+)/;