{{ if and (not .Date.IsZero) .Site.Params.warnPostOlderThanXYears }} {{ $ageYears := div (sub now.Unix .Date.Unix) 31536000 }} {{ if .Lastmod }} {{ $ageYears := div (sub now.Unix .Lastmod.Unix) 31536000 }} {{ end }} {{ if gt $ageYears .Site.Params.warnPostOlderThanXYears }}