aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-10-26 00:00:00 +0000
committertdro <tdro@noreply.example.com>2024-10-26 00:00:00 +0000
commit15c615dcfac0643b4e61721008c8f49cdb81dc06 (patch)
tree3291f81277968f72905dcdcb0e7b336750bcbe1d
parent4ee5a7da311b93d11cdff7a04cb502181eaed1b9 (diff)
downloadcanory-15c615dcfac0643b4e61721008c8f49cdb81dc06.tar.gz
canory-15c615dcfac0643b4e61721008c8f49cdb81dc06.tar.bz2
canory-15c615dcfac0643b4e61721008c8f49cdb81dc06.zip
themes/default/layouts/_default/single: Use next/previous in section
-rw-r--r--themes/default/layouts/_default/single.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/default/layouts/_default/single.html b/themes/default/layouts/_default/single.html
index 676c288..bdff6b5 100644
--- a/themes/default/layouts/_default/single.html
+++ b/themes/default/layouts/_default/single.html
@@ -27,14 +27,14 @@
{{- $prevTitle := "hidden" -}}
{{- $nextTitle := "hidden" -}}
- {{- with .Next -}}
- {{- $nextHref = $.Next.Permalink -}}
- {{- $nextTitle = $.Next.Summary -}}
+ {{- with .NextInSection -}}
+ {{- $nextHref = $.NextInSection.Permalink -}}
+ {{- $nextTitle = $.NextInSection.Summary -}}
{{- end -}}
- {{- with .Prev -}}
- {{- $prevHref = $.Prev.Permalink -}}
- {{- $prevTitle = $.Prev.Summary -}}
+ {{- with .PrevInSection -}}
+ {{- $prevHref = $.PrevInSection.Permalink -}}
+ {{- $prevTitle = $.PrevInSection.Summary -}}
{{- end -}}
{{- with or .Next .Prev -}}