{{- 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 (where .Data.Pages.ByLastmod.Reverse "Section" "!=" "") -}}
        {{- if gt (add .Lastmod.Unix (mul 86900 $days)) now.Unix -}}
            {{- if lt $postCount $maxPostCount -}}
       