Skip to content

Commit

Permalink
photoswipe is fun
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdada committed Aug 16, 2024
1 parent 4284ebb commit a5c66b2
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 100 deletions.
6 changes: 3 additions & 3 deletions photospagegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def process_directory(directory, relative_path=''):
# Add image to HTML content
html_content += f'''
<div class="image-item">
<a href="/{os.path.join(relative_path, folder_name, item)}" target="_blank" class="image-link">
<div target="_blank" class="image-link">
<img src="/thumbnails/{thumbnail_name}?url" alt="{item}" loading="lazy">
<div class="image-overlay">
<p class="image-title">{item}</p>
<p class="image-date">uploaded on {folder_name}</p>
<p class="image-date">Uploaded on {folder_name}</p>
</div>
</a>
</div>
</div>
'''

Expand Down
Loading

0 comments on commit a5c66b2

Please sign in to comment.