Skip to content

Commit 4fefffa

Browse files
committed
feat: improve gallery
organize by year. preprocess the photo list into an array like this [{year: 2024, photos: [url,url,url]}] sorted by highest year first. Then update the template to organize the photos by year, iterating over them with a header showing the year, followed by the photos. Also make sure to use the angular or web standard feature that prevents loading the image until its in the viewport. Update compression script and compress uncompress files.
1 parent 6c5dd26 commit 4fefffa

37 files changed

+99
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Photos should be:
3939
- Resize images to fit within 1024x768 while maintaining aspect ratio
4040

4141
```bash
42-
find ./src/a/images/gallery -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" -o -name "*.webp" \) -exec sh -c '
42+
find ./src/a/images/gallery -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" -o -iname "*.webp" \) -exec sh -c '
4343
echo "Processing: $1"
4444
# Create backup with .original extension if it doesn'\''t exist
4545
if [ ! -f "$1.original" ]; then
6 Bytes
Loading
16 Bytes
Loading
-22 Bytes
Loading
12 Bytes
Loading
-5 Bytes
Loading
-11 Bytes
Loading
2 Bytes
Loading
2 Bytes
Loading
18 Bytes
Loading

0 commit comments

Comments
 (0)