{{ define "main" }} {{ $section_to_display := .Sections | default .Paginator.Pages }} {{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }} {{ end }}