Commit 37d4d68f authored by Jamie Tanna's avatar Jamie Tanna

Add custom page to render events with an `h-event`

As part of jvt.me#395.
parent 542295e7
{{ define "main" }}
<main>
<div class="post">
<div class="h-event">
{{ partial "single/title.html" . }}
<p class="p-summary">{{ .Description }}</p>
<p>
From
<time class="dt-start" datetime="{{ dateFormat "2006-01-02 15:04" .Params.Start }}">
{{ dateFormat "Mon, 02 Jan 2006 15:04:05 MST" .Params.Start }}
</time>
to
<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">
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>
</p>
{{ if .Content }}
<p class="p-description">{{ .Content }}</p>
{{ end }}
</div>
{{ partial "single/footer.html" . }}
</div>
</main>
{{ end }}
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