{{- if and .Site.Params.section.recentlyUpdated.enable (eq $.Paginator.PageNumber 1) -}} {{- $hasTitle := false }} {{- $postCount := 0 -}} {{- $maxPostCount := .Site.Params.section.recentlyUpdated.maxCount | default 10 -}} {{- $days := .Site.Params.section.recentlyUpdated.days | default 30 -}} {{- range first $maxPostCount (where .Data.Pages.ByLastmod.Reverse "Section" "!=" "") -}} {{- if gt (add .Lastmod.Unix (mul 86900 $days)) now.Unix -}} {{- if ne .Lastmod.Unix .Date.Unix }} {{- $postCount = add $postCount 1 -}} {{- if eq $hasTitle false -}}

{{- T "section.recentlyUpdated" -}}

{{- $hasTitle = true -}} {{- end -}}
{{- .Title -}} {{- with .Site.Params.section.dateformat | default "01-02" | .Lastmod.Format -}} {{- dict "Date" . | T "single.updatedOnDate" -}} {{- end -}}
{{- end -}} {{- end -}} {{- end -}} {{- end -}}