File tree 2 files changed +12
-0
lines changed
docs/content/documentation/templates
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,8 @@ pub struct SerializingSection<'a> {
162
162
backlinks : Vec < BackLink < ' a > > ,
163
163
generate_feeds : bool ,
164
164
transparent : bool ,
165
+ paginate_by : & ' a Option < usize > ,
166
+ paginate_reversed : bool ,
165
167
}
166
168
167
169
#[ derive( Debug ) ]
@@ -226,6 +228,8 @@ impl<'a> SerializingSection<'a> {
226
228
subsections,
227
229
translations,
228
230
backlinks,
231
+ paginate_by : & section. meta . paginate_by ,
232
+ paginate_reversed : section. meta . paginate_reversed ,
229
233
}
230
234
}
231
235
}
Original file line number Diff line number Diff line change @@ -112,8 +112,16 @@ backlinks: Array<{permalink: String, title: String?}>;
112
112
generate_feeds : bool ;
113
113
// Whether this section is transparent. Taken from the front-matter if set
114
114
transparent : bool ;
115
+ // How many items per pager (if defined)
116
+ paginate_by : Number ? ;
117
+ // If items order is reversed in the pagination (defaults to false)
118
+ paginate_reversed : bool ;
115
119
` ` `
116
120
121
+ Information about pagination is useful when using the ` get_section ` Tera function for which the ` paginator ` is not available.
122
+
123
+ See [pagination template documentation](@/documentation/templates/pagination.md) for more information on the ` paginator ` variable.
124
+
117
125
## Table of contents
118
126
119
127
Both page and section templates have a ` toc ` variable that corresponds to an array of ` Header ` .
You can’t perform that action at this time.
0 commit comments