summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/list.html')
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/list.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/list.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/list.html
new file mode 100644
index 000000000..3b7a2307e
--- /dev/null
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/list.html
@@ -0,0 +1,5 @@
+{{ 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 }}