Do not populate prev/next on section index rendering
This commit is contained in:
parent
177826a110
commit
fc960c1771
|
@ -106,7 +106,7 @@ along with it that are NOT markdown.
|
|||
Those assets will be copied in the same folder when building so you can just use a relative path to use them.
|
||||
|
||||
A summary is only defined if you put `<!-- more -->` in the content. If present in a page, the summary will be from
|
||||
the start up to that tag.s
|
||||
the start up to that tag.
|
||||
|
||||
### Sections
|
||||
Sections represent a group of pages, for example a `tutorials` section of your site.
|
||||
|
|
|
@ -202,7 +202,7 @@ impl Site {
|
|||
for (parent_path, section) in &mut self.sections {
|
||||
// TODO: avoid this clone
|
||||
let (sorted_pages, _) = sort_pages(section.pages.clone(), Some(§ion));
|
||||
section.pages = populate_previous_and_next_pages(sorted_pages.as_slice());
|
||||
section.pages = sorted_pages;
|
||||
|
||||
match grandparent_paths.get(parent_path) {
|
||||
Some(paths) => section.subsections.extend(paths.clone()),
|
||||
|
|
Loading…
Reference in a new issue