aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/index.json
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/index.json')
-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 }}
{