Browse Source

Rebuild pages on changes to insert_anchor

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
92d81509d3
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/bin/rebuild.rs

+ 4
- 2
src/bin/rebuild.rs View File

@@ -35,7 +35,7 @@ enum SectionChangesNeeded {
Sort, Sort,
/// Editing `title`, `description`, `extra`, `template` or setting `render` to true /// Editing `title`, `description`, `extra`, `template` or setting `render` to true
Render, Render,
/// Editing `paginate_by` or `paginate_path`
/// Editing `paginate_by`, `paginate_path` or `insert_anchor`
RenderWithPages, RenderWithPages,
/// Setting `render` to false /// Setting `render` to false
Delete, Delete,
@@ -56,7 +56,9 @@ fn find_section_front_matter_changes(current: &SectionFrontMatter, other: &Secti
return changes_needed; return changes_needed;
} }


if current.paginate_by != other.paginate_by || current.paginate_path != other.paginate_path {
if current.paginate_by != other.paginate_by
|| current.paginate_path != other.paginate_path
|| current.insert_anchor != other.insert_anchor {
changes_needed.push(SectionChangesNeeded::RenderWithPages); changes_needed.push(SectionChangesNeeded::RenderWithPages);
// Nothing else we can do // Nothing else we can do
return changes_needed; return changes_needed;


Loading…
Cancel
Save