Commit ab8091a5 authored by Jamie Tanna's avatar Jamie Tanna

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

This is failing on i.e. /events/ as that's technically an events page,
but doesn't have the metadata set on it.
parent 7fb574c3
......@@ -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