{{- 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 -}}