Commit f0796e13 authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'defect/hevent-card' into 'fork'

Allow embedding of an h-card in an event's p-location

See merge request !35
parents f103ac95 656a26e2
......@@ -14,7 +14,28 @@
<time class="dt-end" datetime="{{ dateFormat "2006-01-02 15:04" .Params.end }}">
{{ dateFormat "Mon, 02 Jan 2006 15:04:05 MST" .Params.End }}
</time>
{{ if .Params.Adr }}
{{ if .Params.card }}
<span class="p-location h-card">
at
{{ if .Params.card.url }}
<a href="{{ .Params.card.url }}" class="u-url p-name">{{ .Params.card.name }}</a>
{{ else }}
<span class="p-name">{{ .Params.card.name }}</span>
{{ end }}
{{ if .Params.Adr }}
<span class="p-street-address">{{ .Params.adr.street_address }}</span>
<span class="p-locality">{{ .Params.adr.locality }}</span>
<span class="p-country-name">{{ .Params.adr.country_name }}</span>
<span class="p-postal-code">{{ .Params.adr.postal_code }}</span>
{{ end }}
{{ if .Params.Geo }}
<span class="p-latitude">{{ .Params.geo.latitude }}</span>
<span class="p-longitude">{{ .Params.geo.longitude }}</span>
{{ end }}
</span>
{{ else if .Params.Adr }}
at
<span class="p-location h-adr">
<span class="p-street-address">{{ .Params.adr.street_address }}</span>
......@@ -22,8 +43,7 @@
<span class="p-country-name">{{ .Params.adr.country_name }}</span>
<span class="p-postal-code">{{ .Params.adr.postal_code }}</span>
</span>
{{ end }}
{{ if .Params.Geo }}
{{ else if .Params.Geo }}
at
<span class="p-location h-geo">
<span class="p-latitude">{{ .Params.geo.latitude }}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment