diff options
-rw-r--r-- | config.toml | 1 | ||||
-rw-r--r-- | layouts/stream/list.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.toml b/config.toml index 1229cc5..42e4ff3 100644 --- a/config.toml +++ b/config.toml @@ -5,6 +5,7 @@ languageCode = "en-gb" enableInlineShortcodes = true pygmentsCodeFences = true pygmentsUseClasses = true +paginate = 2 [params] description = "An intentionally quiet and unassuming (and empty) blog" diff --git a/layouts/stream/list.html b/layouts/stream/list.html index fd87753..4b384d8 100644 --- a/layouts/stream/list.html +++ b/layouts/stream/list.html @@ -2,7 +2,7 @@ {{ .Content }} -{{ range where site.RegularPages "Section" "stream" }} +{{ range (.Paginate (where site.RegularPages "Section" "stream")).Pages }} <h3 id="{{ .Date.Format "Monday, 2 January 2006"| urlize}}">{{ .Date.Format "Monday, 2 January 2006" }}</h3> {{ .Content }} |