We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26bb2aa + 366f4aa commit e397b30Copy full SHA for e397b30
layouts/partials/test/single.html
@@ -39,6 +39,20 @@
39
"type" .Parent.Type
40
) nil) -}}
41
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
56
{{- return (dict
57
"id" (partial "id.html" .)
58
"title" .Title
@@ -65,4 +79,5 @@
65
79
"prerequisites" $prerequisites
66
80
"total_marks" $total
67
81
"parent" $parent
82
+ "next_page" $nextPage
68
83
) -}}
0 commit comments