renamed script and added attribution

This commit is contained in:
2024-07-06 12:15:03 +02:00
parent ed7623b6b4
commit 4a19479760
5 changed files with 25 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# generate_html.py
# Static Gallery Website Builder (SGWB)
`generate_html.py` is a Python script designed to generate static HTML files for hosting images on a web server. It traverses a specified root directory, creates thumbnail previews for images, and generates corresponding HTML files to display the images and subfolders in a user-friendly format.
`static_gallery_website_builder.py` is a Python script designed to generate static HTML files for hosting images on a web server. It traverses a specified root directory, creates thumbnail previews for images, and generates corresponding HTML files to display the images and subfolders in a user-friendly format.
## Features

View File

@@ -130,11 +130,20 @@ figure {
display: block;
}
.attribution {
position: absolute;
bottom: 0;
right: 0;
font-size: xx-small;
padding: 6px;
}
.license {
position: fixed;
bottom: 0;
width: 100%;
padding: 12px;
padding: 6px;
min-height: calc(6.75pt + 12px);
}
.navbar {
@@ -163,4 +172,4 @@ figure {
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
}

5
requirements.txt Normal file
View File

@@ -0,0 +1,5 @@
Jinja2==3.1.4
numpy==2.0.0
pillow==10.4.0
rich-argparse==1.5.2
tqdm==4.66.4

View File

@@ -70,8 +70,15 @@
{%- endfor %}
</a>
{%- endif %}
<span class="attribution">Made with <a href="https://github.com/greflm13/simple-picture-server" target="_blank">Static Gallery Website Builder</a></a> by <a href="https://github.com/greflm13"
target="_blank">Flo Greistorfer</a>.</span>
</div>
{%- endif %}
{%- else %}
<div class="license">
<span class="attribution">Made with <a href="https://github.com/greflm13/simple-picture-server" target="_blank">Static Gallery Website Builder</a></a> by <a href="https://github.com/greflm13"
target="_blank">Flo Greistorfer</a>.</span>
</div>
{%- endif %}
</body>