Skip to content

Commit 366f4aa

Browse files
committed
add next page to test
Signed-off-by: Aabid Sofi <mailtoaabid01@gmail.com>
1 parent ee38e31 commit 366f4aa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

layouts/partials/test/single.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@
3939
"type" .Parent.Type
4040
) nil) -}}
4141

42+
43+
{{- $nextPage := dict -}}
44+
{{- if .PrevInSection -}}
45+
{{- $next := .PrevInSection -}}
46+
{{- $nextPage = dict
47+
"id" (partial "id.html" $next)
48+
"title" $next.Title
49+
"relPermalink" $next.RelPermalink
50+
"type" $next.Type
51+
-}}
52+
{{- end -}}
53+
54+
55+
4256
{{- return (dict
4357
"id" (partial "id.html" .)
4458
"title" .Title
@@ -65,4 +79,5 @@
6579
"prerequisites" $prerequisites
6680
"total_marks" $total
6781
"parent" $parent
82+
"next_page" $nextPage
6883
) -}}

0 commit comments

Comments
 (0)