macros seem not to correctly render in preview #52

Closed
opened 2026-07-20 16:55:51 +00:00 by hugo · 1 comment
Owner

the photo_gallery in "Bildergalerie" does not render any images, despite there being images in that date range.

the tag cloud is claiming "no tags" but there are tags in the database and showing for example on the dashboard.

gallery posts do claim "no media" but there are images related to posts in the filesystem.

This might also happen during rendering, I did not test that, I only tested preview.

the photo_gallery in "Bildergalerie" does not render any images, despite there being images in that date range. the tag cloud is claiming "no tags" but there are tags in the database and showing for example on the dashboard. gallery posts do claim "no media" but there are images related to posts in the filesystem. This might also happen during rendering, I did not test that, I only tested preview.
hugo added the bug label 2026-07-20 16:55:51 +00:00
Author
Owner

Implemented in 713575d.

The shared renderer now carries project-wide image media and published tag counts into built-in macros, and preserves linked media by post ID so gallery macros also resolve inside list/home/archive rendering. Photo archives now filter image media by UTC creation year/month, order and group it like bDS2, cap the unfiltered archive, and emit lightbox metadata. Tag clouds now use published project counts and tag colours, bDS2 sizing, escaped JSON, orientation aliases, and validated dimensions. Gallery/video/archive/cloud labels and titles use the render locale. Preview and generation continue through the same renderer.

Verification: added a red/green regression covering single and list preview plus single and list generation with linked images, non-image exclusion, unlinked project archive media, date exclusion, published tags, colours, sizing, orientation, and dimensions. cargo build --workspace passed; cargo test --workspace passed; cargo clippy -p bds-core --all-targets -- -D warnings passed; allium check specs and allium analyse specs passed with no findings. Neutral review against #52, bDS2 macro_rendering/filters behaviour, and rendering/template_context/preview Allium guarantees found no remaining gaps.

Implemented in 713575d. The shared renderer now carries project-wide image media and published tag counts into built-in macros, and preserves linked media by post ID so gallery macros also resolve inside list/home/archive rendering. Photo archives now filter image media by UTC creation year/month, order and group it like bDS2, cap the unfiltered archive, and emit lightbox metadata. Tag clouds now use published project counts and tag colours, bDS2 sizing, escaped JSON, orientation aliases, and validated dimensions. Gallery/video/archive/cloud labels and titles use the render locale. Preview and generation continue through the same renderer. Verification: added a red/green regression covering single and list preview plus single and list generation with linked images, non-image exclusion, unlinked project archive media, date exclusion, published tags, colours, sizing, orientation, and dimensions. cargo build --workspace passed; cargo test --workspace passed; cargo clippy -p bds-core --all-targets -- -D warnings passed; allium check specs and allium analyse specs passed with no findings. Neutral review against #52, bDS2 macro_rendering/filters behaviour, and rendering/template_context/preview Allium guarantees found no remaining gaps.
hugo closed this issue 2026-07-20 17:32:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hugo/RuDS#52