33 lines
1008 B
HTML
33 lines
1008 B
HTML
{{ $Lat := $.Param "Latitude" }}
|
|
{{ $Lon := $.Param "Longitude" }}
|
|
|
|
<div class="post container">
|
|
|
|
<div class="post-header-section">
|
|
<h1>{{ .Title }}</h1>
|
|
<small role="doc-subtitle">{{ .Description }}</small>
|
|
<p class="post-date">
|
|
{{ dateFormat "2 January, 2006" .Date }}
|
|
</p>
|
|
|
|
<ul class="post-tags">
|
|
{{ range .Params.tags }}
|
|
<li class="post-tag"><a href="{{ "/tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="post-content">
|
|
<p>
|
|
{{ .Content }}
|
|
</p>
|
|
{{ if (and (isset .Params "longitude") (isset .Params "latitude")) }}
|
|
{{ partial "leaflet-loader" . }}
|
|
<h3>Map</h3>
|
|
{{ partial "leaflet-map" (dict "context" . "mapHeight" "200px" "mapLat" $Lat "mapLon" $Lon) }}
|
|
{{ partial "leaflet-marker" (dict "context" . "markerLat" $Lat "markerLon" $Lon) }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
|