{{ if .Get "id" -}} {{ $id := .Get "id" -}} {{ if .Get "date" -}} {{ $date := .Get "date" -}} {{ with .Page.Scratch.Get "countdownMap" -}} {{ .Page.Scratch.Set "countdownMap" (dict $id $date | merge .) -}} {{ else -}} {{ .Page.Scratch.Set "countdownMap" (dict $id $date) -}} {{ end -}} {{ with .Get "class" -}}
{{- else -}} {{- end -}} {{ end -}} {{ end }}