only show lat/lon if one is present
This commit is contained in:
parent
93e541d2a0
commit
81812030a8
|
@ -46,7 +46,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
||||||
<p>Time: {{ .StartTime.Local.Format "03:04PM EDT Mon Jan 02"}}
|
<p>Time: {{ .StartTime.Local.Format "03:04PM EDT Mon Jan 02"}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Place }}
|
{{ with .Place }}
|
||||||
<p>Location: {{ with .Url }}<a href="{{ . }}" rel=noreferrer>{{ end }}{{ .Name }}{{ if .Url }}</a>{{ end }} <a href="https://www.openstreetmap.org/?mlat={{ .Latitude }}&mlon={{ .Longitude}}" rel=noreferrer>{{ .Latitude }} {{ .Longitude }}</a>
|
<p>Location: {{ with .Url }}<a href="{{ . }}" rel=noreferrer>{{ end }}{{ .Name }}{{ if .Url }}</a>{{ end }}{{ if or .Latitude .Longitude }} <a href="https://www.openstreetmap.org/?mlat={{ .Latitude }}&mlon={{ .Longitude}}" rel=noreferrer>{{ .Latitude }} {{ .Longitude }}</a>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .Donks }}
|
{{ range .Donks }}
|
||||||
{{ if .Local }}
|
{{ if .Local }}
|
||||||
|
|
Loading…
Reference in New Issue