diff --git a/hugo.yaml b/hugo.yaml
index 3c7287e..3fa659a 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -16,6 +16,9 @@ frontmatter:
- :fileModTime
- :default
+pagination:
+ pagerSize: 15
+
taxonomies:
author: author
category: categories
diff --git a/layouts/_partials/pagermenu.html b/layouts/_partials/pagermenu.html
new file mode 100644
index 0000000..052eca3
--- /dev/null
+++ b/layouts/_partials/pagermenu.html
@@ -0,0 +1,17 @@
+
diff --git a/layouts/section.html b/layouts/section.html
index 96a875f..5beff0d 100644
--- a/layouts/section.html
+++ b/layouts/section.html
@@ -3,7 +3,9 @@
{{ .Content }}
- {{ range .RegularPagesRecursive.ByDate.Reverse }}
+ {{ $pages := .RegularPagesRecursive.ByDate.Reverse }}
+ {{ $pager := .Paginate $pages }}
+ {{ range $pager.Pages }}
@@ -14,5 +16,7 @@
{{ end }}
{{ end }}
+
+ {{ partial "pagermenu.html" $pager }}
{{ end }}
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}