feat: simplify gallery.yaml and add support for album name overrides
This commit is contained in:
@@ -9,23 +9,20 @@ hero:
|
||||
|
||||
# Standalone albums shown directly on the homepage
|
||||
albums:
|
||||
- a89c6085-a105-46c2-baa4-338bc69cab93
|
||||
- 9aee9367-a239-4651-980d-3368bc70b7b6
|
||||
- a89c6085-a105-46c2-baa4-338bc69cab93: "Wüstenzauber"
|
||||
- 9aee9367-a239-4651-980d-3368bc70b7b6: "Heimatliebe"
|
||||
|
||||
# Subpages group multiple albums under one URL path
|
||||
subpages:
|
||||
- name: Deutschland
|
||||
albums:
|
||||
- 9aee9367-a239-4651-980d-3368bc70b7b6
|
||||
|
||||
- name: Dubai
|
||||
albums:
|
||||
- a89c6085-a105-46c2-baa4-338bc69cab93
|
||||
|
||||
- name: Polen
|
||||
Deutschland:
|
||||
- 9aee9367-a239-4651-980d-3368bc70b7b6
|
||||
Dubai:
|
||||
- a89c6085-a105-46c2-baa4-338bc69cab93: "Burj Khalifa & Co"
|
||||
# Support for subpages with passwords or custom grids in the map format
|
||||
Polen:
|
||||
password: clientpass123
|
||||
albums:
|
||||
- 4ad0ed89-55de-4e69-937f-2d9988f63ad1
|
||||
- 4ad0ed89-55de-4e69-937f-2d9988f63ad1: "Krakau & mehr"
|
||||
|
||||
# Footer — optional minimal footer with social links
|
||||
footer:
|
||||
|
||||
@@ -13,8 +13,9 @@ hero: 00000000-0000-0000-0000-000000000000
|
||||
# - 22222222-2222-2222-2222-222222222222
|
||||
|
||||
# Standalone albums — shown directly on the homepage as cards
|
||||
# Use a string for the UUID, or a map for an inline name override.
|
||||
albums:
|
||||
- 11111111-1111-1111-1111-111111111111
|
||||
- 11111111-1111-1111-1111-111111111111: "Meine Favoriten" # inline override
|
||||
- 22222222-2222-2222-2222-222222222222
|
||||
|
||||
# Show camera/lens EXIF on photo hover (default: true)
|
||||
@@ -30,21 +31,17 @@ albums:
|
||||
# aspectRatio: "1" # "1", "3/2", "auto", etc. default: "1"
|
||||
# layout: masonry # "masonry" or "uniform", default: "masonry"
|
||||
|
||||
# Subpages — group albums into collections at /subpage-slug/album-slug
|
||||
# Subpages — group albums into collections at /subpage-slug/album-slug.
|
||||
# You can use a simple map for concise definitions, or a full object for passwords/grids.
|
||||
subpages:
|
||||
- name: Japan
|
||||
grid: # override global grid for this subpage
|
||||
columns: 4
|
||||
layout: uniform
|
||||
aspectRatio: "3/2"
|
||||
albums:
|
||||
- 33333333-3333-3333-3333-333333333333 # Tokyo
|
||||
- 44444444-4444-4444-4444-444444444444 # Kyoto
|
||||
Japan: # Simple map format
|
||||
- 33333333-3333-3333-3333-333333333333: "Tokyo Nights"
|
||||
- 44444444-4444-4444-4444-444444444444
|
||||
|
||||
- name: Wedding – Smith
|
||||
password: clientpass123 # visitors must enter this to view
|
||||
Wedding: # Advanced object format (needed for passwords/grid overrides)
|
||||
password: clientpass123
|
||||
albums:
|
||||
- 55555555-5555-5555-5555-555555555555
|
||||
- 55555555-5555-5555-5555-555555555555: "The Big Day"
|
||||
|
||||
# Footer — optional minimal footer with social links
|
||||
# footer:
|
||||
|
||||
Reference in New Issue
Block a user