diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-15 13:55:32 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-15 23:50:40 +0300 |
| commit | be6ae2c9541a01927616b46cf6a683d7ce4519ff (patch) | |
| tree | 53161337bae46495b8e88b96f1b28b1bd6f9c2ca /src/lib/template.source.sh | |
| parent | 6e47246dbbc97821b97aa9c45352abc9c2a9aa4a (diff) | |
Per-camera mini-albums: full-width grid + camera-scoped view navigation
Two fixes to the per-camera pages:
- The camera thumbnail grid is now full-width and reflows with the window like
the main album. Previously it sat inside the 900px-wide stats column, so wide
thumbnails only fit ~2 per row. camera.tmpl now puts the grid in a full-width
sibling block (centered by the body, like the album's direct thumbnail
children); the heading/back-link stay in the narrow stats column.
- Each camera is now a self-contained mini album. Thumbnails link to per-camera
view pages (camera-<slug>--<index>.html) whose prev/next cycle only through
that camera's photos, instead of linking into the shared album view pages
(where next/prev walked the whole album and left the camera). The view pages
reuse the album's look (blurred background, EXIF tooltip, animation) and offer
Gallery / Details (to the album details page) / Direct-link nav. The "--"
index separator can never collide with a gallery name since slugs never
contain "--".
Adds cameraview.tmpl + its render field, _stats_render_camera_{gallery,views}
and the cameraview body builders. Tests updated for the new thumbnail links and
extended to assert the per-camera view pages and their camera-scoped navigation;
required-context-vars test now also covers the camera and cameraview templates.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'src/lib/template.source.sh')
| -rw-r--r-- | src/lib/template.source.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/template.source.sh b/src/lib/template.source.sh index 026e3ce..1fc8894 100644 --- a/src/lib/template.source.sh +++ b/src/lib/template.source.sh @@ -148,6 +148,7 @@ declare -ra TEMPLATE_RENDER_FIELD_SPECS=( 'render_background_image_css|context_css|background_image|background_image|header splash' 'render_blurs_dir_css|context_css|blurs_dir|blurs_dir|header splash' 'render_camera_name_html|context_html|camera_name|camera_name|camera' + 'render_cameraview_body_html|context_raw|cameraview_body|cameraview_body|cameraview' 'render_camera_thumbs_html|context_raw|camera_thumbs|camera_thumbs|camera' 'render_current_date_text|current_date_html|||' 'render_enter_page_html|context_html|enter_page|enter_page|splash' |
