Inserito il tema direttamente nel codice invece che come sottomodulo
This commit is contained in:
17
themes/hugo-universal-theme/layouts/partials/map.html
Normal file
17
themes/hugo-universal-theme/layouts/partials/map.html
Normal file
@ -0,0 +1,17 @@
|
||||
{{ if and .Site.Params.enableGoogleMaps .Site.Params.googleMapsApiKey }}
|
||||
{{ if isset .Site.Params "latitude" }}
|
||||
{{ if isset .Site.Params "longitude" }}
|
||||
<div class="hidden">
|
||||
<input id="gmap-lat" value="{{ .Site.Params.latitude }}" />
|
||||
<input id="gmap-lng" value="{{ .Site.Params.longitude }}" />
|
||||
<input id="gmap-marker" value="{{ "img/marker.png" | relURL }}" />
|
||||
{{ if isset .Site.Params "direction" }}
|
||||
<input id="gmap-dir" value="{{ .Site.Params.direction }}" />
|
||||
{{ else }}
|
||||
<input id="gmap-dir" value="{{ .Site.Params.latitude }},{{ .Site.Params.longitude }}" />
|
||||
{{ end }}
|
||||
</div>
|
||||
<div id="map" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user