shithub: hugo

ref: d2b1030060d3c91d5f9ffa3456418da16bd74f1d
dir: /themes/gohugoioTheme/layouts/_default/list.html/

View raw version
{{ 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 }}