only show lat/lon if one is present

This commit is contained in:
Ted Unangst 2019-10-02 21:27:44 -04:00
parent 93e541d2a0
commit 81812030a8
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}