Commit 4d3795c0 authored by Jamie Tanna's avatar Jamie Tanna

Fix: `h-geo` and `h-adr` are not child cards

This was an incorrect reading of the spec - the `h-adr` and `h-geo`
classes sit on the same element as `p-location`, otherwise we don't
parse it correctly.

As part of jvt.me#395.
parent 699a76af
......@@ -14,23 +14,22 @@
<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>
<span class="p-location">
{{ if .Params.Adr }}
at
{{ if .Params.Adr }}
<span class="h-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>
</span>
{{ end }}
{{ if .Params.Geo }}
<span class="h-geo">
<span class="p-latitude">{{ .Params.geo.latitude }}</span>
<span class="p-longitude">{{ .Params.geo.longitude }}</span>
</span>
{{ end }}
<span class="p-location h-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>
</span>
{{ end }}
{{ if .Params.Geo }}
at
<span class="p-location h-geo">
<span class="p-latitude">{{ .Params.geo.latitude }}</span>
<span class="p-longitude">{{ .Params.geo.longitude }}</span>
</span>
{{ end }}
</p>
{{ if .Content }}
<p class="p-description">{{ .Content }}</p>
......
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