5 Commits

Author SHA1 Message Date
Daniel Strobusch f597beb5c4 Fix tabs: use page-level counter for unique group IDs (#817) (#818)
.Page.Store.Add is broken in Hugo 0.158+ (returns nil).
Additionally, Hugo renders shortcodes bottom-up, so the parent
tabs.html cannot pass data to child tab.html via .Store.

Fix:
- shortcode-id partial: replace .Page.Store.Add with explicit
  .Page.Store.Set + add, which works in Hugo 0.161+.
- tab.html: the first child tab generates a page-unique ID via
  the partial and caches it on .Parent.Store for siblings.
- tabs.html: remove broken .Store.Set "id" line.

This avoids the .Parent.Ordinal collision when tabs are nested
inside other shortcodes (details, columns, etc.).

Fixes #817
2026-05-27 13:51:45 +02:00
Alex Shpak fe5f41f15d #803, use page-level IDs for shortcodes 2026-05-16 23:47:34 +02:00
Alex Shpak 836a8a82d6 Improve consistency of handling shrotcode attributes 2025-10-12 13:27:05 +02:00
Alex Shpak 5ffdf5bfaf Review and update whitespaces in shortcodes to improve shortcode nesting 2025-09-26 15:48:57 +02:00
Alex Shpak f2c703e155 Adjust templates layout for hugo 0.146, potentially breaking change 2025-05-31 01:38:33 +02:00