Commit cab1d958 authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'defect/event-start-metadata' into 'fork'

Fix: Only show event start metadata if it's set

See merge request !56
parents 7fb574c3 ab8091a5
......@@ -63,8 +63,10 @@
{{ end }}
{{ end }}
{{- if (eq .Type "events") -}}
{{ if .Params.Start }}
<meta name="twitter:label1" value="Start time" />
<meta name="twitter:data1" value="{{ dateFormat "Mon, 02 Jan 2006 15:04:05 MST" .Params.Start }}" />
{{ end }}
{{ if .Params.Adr }}
<meta name="twitter:label2" value="Address" />
<meta name="twitter:data2" value="{{ .Params.adr.street_address }}, {{ .Params.adr.locality }}, {{ .Params.adr.postal_code }}" />
......
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