mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-04 20:22:33 -05:00
5 lines
301 B
HTML
5 lines
301 B
HTML
{{ define "main" }}
|
|
{{ $paginator := .Paginate (.Pages | lang.Merge (where .Sites.First.RegularPages "Section" .Section)) }}
|
|
{{ $section_to_display := .Sections | default $paginator.Pages }}
|
|
{{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }}
|
|
{{ end }}
|