diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-22 19:59:30 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-22 19:59:30 +0100 |
commit | 0476dd3e7923b1cf7061093d782bd94718900b8c (patch) | |
tree | 69736448857d2efd754ea8dd882c90b9911420b3 | |
parent | 1e6c097a257e3d349561cea70490683d325f991f (diff) |
First pagination - no nav yet
-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 }} |