Skip to content

fix(shortcodes): give the map id the UniqueID helper#269

Merged
markdumay merged 1 commit into
mainfrom
fix/ordinal-id
Jul 15, 2026
Merged

fix(shortcodes): give the map id the UniqueID helper#269
markdumay merged 1 commit into
mainfrom
fix/ordinal-id

Conversation

@markdumay

Copy link
Copy Markdown
Contributor

The map shortcode built its id from .Ordinal, which resets to 0 inside the example shortcode's embedded RenderString, so two maps in two {{< example >}} blocks collided on leaflet-map-0. It now uses mod-utils' UniqueID helper (leaflet-map-UID-<n>). The explicit id argument still overrides. Bumps the mod-utils pin to v6.5.0, which provides the helper.

Part of an ecosystem-wide .Ordinal→UniqueID migration; independent of the companion PRs.

🤖 Generated with Claude Code

The id was built from .Ordinal, which resets to 0 inside the example shortcode's
embedded RenderString, so two maps in two example blocks collided. Use
mod-utils' UniqueID helper (v6.5.0).
@markdumay markdumay merged commit 9f96886 into main Jul 15, 2026
8 checks passed
@markdumay

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 3.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant