I want each page to show its creation date, but only if I have set a date in the front matter.
My content file has:
date: “2015-08-15”
And in my _default/single.html template:
{{ if eq .Type “page” }}
{{ if isset .Date }}
{{ .Date.Format “Monday, Jan 2, 2006” }}
{{ end }}
{{ end }}
Apparently {{ if isset .Date }} is not the correct syntax. What should I use instead?