mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
added version to footer
This commit is contained in:
@@ -19,7 +19,7 @@ from modules.generate_html import list_folder, EXCLUDES
|
|||||||
# Constants
|
# Constants
|
||||||
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
||||||
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
|
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||||
VERSION = "2.2.0"
|
VERSION = "2.2.1"
|
||||||
RAW_EXTENSIONS = [
|
RAW_EXTENSIONS = [
|
||||||
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
|
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
|
||||||
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",
|
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ from jinja2 import Environment, FileSystemLoader
|
|||||||
|
|
||||||
import modules.cclicense as cclicense
|
import modules.cclicense as cclicense
|
||||||
from modules.argumentparser import Args
|
from modules.argumentparser import Args
|
||||||
|
from builder import VERSION
|
||||||
|
|
||||||
# Constants for file paths and exclusions
|
# Constants for file paths and exclusions
|
||||||
FAVICON_PATH = ".static/favicon.ico"
|
FAVICON_PATH = ".static/favicon.ico"
|
||||||
@@ -295,6 +296,7 @@ def create_html_file(
|
|||||||
info=_info,
|
info=_info,
|
||||||
allimages=images,
|
allimages=images,
|
||||||
webmanifest=_args.generate_webmanifest,
|
webmanifest=_args.generate_webmanifest,
|
||||||
|
version=VERSION,
|
||||||
)
|
)
|
||||||
|
|
||||||
with open(os.path.join(folder, "index.html"), "w", encoding="utf-8") as f:
|
with open(os.path.join(folder, "index.html"), "w", encoding="utf-8") as f:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
<div class="folders">
|
<div class="folders">
|
||||||
{%- for subdirectory in subdirectories %}
|
{%- for subdirectory in subdirectories %}
|
||||||
<figure>
|
<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>
|
<figcaption><a href="{{ subdirectory.url }}">{{ subdirectory.name }}</a></figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
@@ -92,14 +92,14 @@
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</a>
|
</a>
|
||||||
{%- endif %}
|
{%- 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>
|
target="_blank">Flo Greistorfer</a>.</span>
|
||||||
<button onclick="topFunction()" id="totop" title="Back to Top">Back to Top</button>
|
<button onclick="topFunction()" id="totop" title="Back to Top">Back to Top</button>
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
<div class="footer">
|
<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"
|
href="https://github.com/greflm13"
|
||||||
target="_blank" rel="noopener noreferrer">Flo Greistorfer</a>.</span>
|
target="_blank" rel="noopener noreferrer">Flo Greistorfer</a>.</span>
|
||||||
<button onclick="topFunction()" id="totop" title="Back to Top">Back to Top</button>
|
<button onclick="topFunction()" id="totop" title="Back to Top">Back to Top</button>
|
||||||
@@ -145,9 +145,9 @@
|
|||||||
<script>
|
<script>
|
||||||
var pswpElement = document.querySelectorAll('.pswp')[0];
|
var pswpElement = document.querySelectorAll('.pswp')[0];
|
||||||
var items = [
|
var items = [
|
||||||
{%- for image in allimages %}
|
{% - for image in allimages %}
|
||||||
{ src: "{{ image.url }}", w: {{ image.width }}, h: {{ image.height }}, msrc: "{{ image.thumbnail }}" },
|
{ src: "{{ image.url }}", w: { { image.width } }, h: { { image.height } }, msrc: "{{ image.thumbnail }}" },
|
||||||
{%- endfor %}
|
{% - endfor %}
|
||||||
];
|
];
|
||||||
var re = /pid=(\d+)/;
|
var re = /pid=(\d+)/;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user