From a99406c3823ed1e93db298b4106c76c1dba15281 Mon Sep 17 00:00:00 2001 From: ralksta Date: Sun, 8 Mar 2026 22:47:38 +0100 Subject: [PATCH] docs: add title and subtitle documentation for subpages to gallery config --- docs/gallery-config.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/gallery-config.md b/docs/gallery-config.md index 4c6b353..fc43758 100644 --- a/docs/gallery-config.md +++ b/docs/gallery-config.md @@ -48,16 +48,29 @@ Group multiple albums into named collections. URLs are auto-generated from the n ```yaml subpages: - name: Japan # → /japan + title: "Trip to Japan" # Optional: overrides the page heading + subtitle: "2024 adventures" # Optional: adds a subline under the heading albums: - 33333333-3333-3333-3333-333333333333 # Tokyo - 44444444-4444-4444-4444-444444444444 # Kyoto - name: Wedding – Smith # → /wedding-smith - password: clientpass123 # password-protected + password: clientpass123 # Optional: password-protected albums: - 55555555-5555-5555-5555-555555555555 ``` +Alternatively, you can use the object notation (recommended): + +```yaml +subpages: + "Japan": + title: "Trip to Japan" + subtitle: "2024 adventures" + albums: + - 33333333-3333-3333-3333-333333333333 +``` + ## Grid Layout Configure the photo grid globally or per-subpage: