Browse Source

Do not populate prev/next on section index rendering

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
fc960c1771
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      README.md
  2. +1
    -1
      src/site.rs

+ 1
- 1
README.md View File

@@ -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.


+ 1
- 1
src/site.rs View File

@@ -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(&section));
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…
Cancel
Save