{{ with .Page.Params.location }} {{ . }} {{ end }} {{ with and .Page.Params.location (or .Page.Params.startDate .Page.Params.endDate) }} | {{ end }} {{ with .Page.Params.startDate }} {{ end }} {{ with and .Page.Params.startDate .Page.Params.endDate }} - {{ end }} {{ with .Page.Params.endDate }} {{ end }}