{{- $config := .Site.Params.outdatedInfoWarning -}} {{- if $config.enabled -}} {{- $updateTime := .Lastmod -}} {{- if .GitInfo -}} {{- if lt .GitInfo.AuthorDate.Unix .Lastmod.Unix -}} {{- $updateTime := .GitInfo.AuthorDate -}} {{- end -}} {{- end -}} {{- $lastMod := int (div (now.Sub ($updateTime)).Hours 24) -}} {{- $lastModHTML := printf `%s` ($lastMod | string) -}} {{- if (gt $lastMod $config.day) -}}
{{- end -}} {{- end -}}