{{ $date := .Date.Format "02.01.2006" }} {{ $lastmod := .Lastmod.Format "02.01.2006" }} {{ if ne $lastmod $date }} Last edited {{ .Lastmod.Format "02.01.2006" }} {{ end }}