Martin Rubli f3746e0fc4 layouts: map: Make unique ID unique on page, not only shortcut parent
The SHORTCODE.Ordinal method "returns the zero-based ordinal of the shortcode in
relation to its parent." (https://gohugo.io/methods/shortcode/ordinal/)

This is a problem if the same shortcode is used on the different page through
different paths, e.g. once on the page itself and once by a partial (e.g. a
header or footer).

Instead of just using the .Ordinal by itself, use a hash of the parent file
_and_ the ordinal, which gives us a properly unique identifier.
2023-12-18 23:35:44 +01:00
2023-10-10 23:45:13 +02:00
2023-10-16 21:13:04 +02:00
Description
Hugo module that adds easy-to-use map support through the use of shortcodes. Supports various map layers, tracks, markers, and elevation profiles.
MIT 3.7 MiB
Languages
HTML 87.9%
CSS 12.1%