From 92d81509d386fa0d7364a53bdf076e481aa4843d Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 22 May 2017 20:56:37 +0900 Subject: [PATCH] Rebuild pages on changes to insert_anchor --- src/bin/rebuild.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/rebuild.rs b/src/bin/rebuild.rs index 6ea7944d..4b5eac39 100644 --- a/src/bin/rebuild.rs +++ b/src/bin/rebuild.rs @@ -35,7 +35,7 @@ enum SectionChangesNeeded { Sort, /// Editing `title`, `description`, `extra`, `template` or setting `render` to true Render, - /// Editing `paginate_by` or `paginate_path` + /// Editing `paginate_by`, `paginate_path` or `insert_anchor` RenderWithPages, /// Setting `render` to false Delete, @@ -56,7 +56,9 @@ fn find_section_front_matter_changes(current: &SectionFrontMatter, other: &Secti 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); // Nothing else we can do return changes_needed;