Skip to content

Commit

Permalink
🐛 Fix: mapbox page parameters do not take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Sep 23, 2024
1 parent 185c680 commit fabe057
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -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" . -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/mapbox.html
Original file line number Diff line number Diff line change
@@ -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) -}}
Expand Down

0 comments on commit fabe057

Please sign in to comment.