{{- $query := first 1 (where .Site.Pages "Layout" "==" "weeks") -}} {{- if $query -}} {{- $archivesPage := index $query 0 -}}
{{ partial "helper/icon" "infinity" }}

{{ T "widget.weeks.title" }}

{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{range $pages.ByDate}} {{ end }}
{{- else -}} {{- warnf "Weeks page not found. Create a page with layout: weeks." -}} {{- end -}}