diff --git a/hugo.toml b/hugo.toml index e2f012c21..9e42372c9 100644 --- a/hugo.toml +++ b/hugo.toml @@ -953,9 +953,9 @@ enableEmoji = true # access token of Mapbox GL JS accessToken = "" # style for the light theme - lightStyle = "mapbox://styles/mapbox/light-v9" + lightStyle = "mapbox://styles/mapbox/light-v11" # style for the dark theme - darkStyle = "mapbox://styles/mapbox/dark-v9" + darkStyle = "mapbox://styles/mapbox/dark-v11" # whether to add NavigationControl navigation = true # whether to add GeolocateControl diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index af10f9e3d..1b9de465b 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.12-b727c382" -}} +{{- .Scratch.Set "version" "v0.3.12-185c6803" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/shortcodes/mapbox.html b/layouts/shortcodes/mapbox.html index 47c2dd5e5..6572b673d 100644 --- a/layouts/shortcodes/mapbox.html +++ b/layouts/shortcodes/mapbox.html @@ -1,4 +1,4 @@ -{{- $mapbox := (partial "function/params.html").mapbox | default dict -}} +{{- $mapbox := (.Page.Params | merge .Site.Params.page).mapbox | default dict -}} {{- $lng := cond .IsNamedParams (.Get "lng") (.Get 0) -}} {{- $lat := cond .IsNamedParams (.Get "lat") (.Get 1) -}}