aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-11-02 11:08:22 -0400
committertdro <tdro@noreply.example.com>2022-11-02 11:08:22 -0400
commitbf1926903403a77767efb8bbbcde6b32c8929179 (patch)
tree73e9d52d9784142f598d7d85b4f736550819ee71 /themes/default/layouts/_default
parentbec107a46771da25778a92d7e881f157dc91c035 (diff)
downloadcanory-bf1926903403a77767efb8bbbcde6b32c8929179.tar.gz
canory-bf1926903403a77767efb8bbbcde6b32c8929179.tar.bz2
canory-bf1926903403a77767efb8bbbcde6b32c8929179.zip
themes/default/layouts/_default/index.json: Paginate
Load feed in chunks on the client side.
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/index.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/index.json b/themes/default/layouts/_default/index.json
index 86be455..0c9c794 100644
--- a/themes/default/layouts/_default/index.json
+++ b/themes/default/layouts/_default/index.json
@@ -3,8 +3,11 @@
"title": "{{ .Site.Title }}",
"home_page_url": "{{ .Site.BaseURL }}",
"feed_url": "{{ .Site.BaseURL }}/index.json",
+ {{- with .Paginator.Next }}
+ "next_url": "{{ .URL }}",
+ {{- end }}
"items": [
- {{- range $index, $data := .Site.RegularPages -}}
+ {{- range $index, $data := .Paginator.Pages -}}
{{- if and (ne $data.Type "json") (not .ExpiryDate) (not .Params.unlisted) -}}
{{- if and $index (gt $index 0) -}},{{- end }}
{