{{ $dateFormat := "2006-01-02" }} {{ if .Site.Params.dateFormat }} {{ $dateFormat = .Site.Params.dateFormat }} {{ end }} {{ $machineDateFormat := "2006-01-02" }}