diff --git a/layouts/shortcodes/leaflet-elevation-profile.html b/layouts/shortcodes/leaflet-elevation-profile.html index a2a8980..7f1780a 100644 --- a/layouts/shortcodes/leaflet-elevation-profile.html +++ b/layouts/shortcodes/leaflet-elevation-profile.html @@ -2,7 +2,7 @@ {{ errorf "%s: cannot be used outside leaflet-map: %s" .Name .Position }} {{ end }} -{{ $uniqueMapId := .Parent.Ordinal | safeJS }} +{{ $uniqueMapId := (printf "%s:%d" .Page.File.UniqueID .Parent.Ordinal) | md5 | safeJS }}