From 5c56278be1695f1e199e987069d036307139b7ad Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sun, 25 Feb 2018 19:29:46 +0100 Subject: [PATCH] Let people edit their index.md Closes #241 --- components/rebuild/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rebuild/src/lib.rs b/components/rebuild/src/lib.rs index 78209972..de1d3528 100644 --- a/components/rebuild/src/lib.rs +++ b/components/rebuild/src/lib.rs @@ -291,7 +291,7 @@ pub fn after_content_change(site: &mut Site, path: &Path) -> Result<()> { } // Added another .md in a assets directory - if index.exists() && path.exists() { + if index.exists() && path.exists() && path != index { bail!( "Change on {:?} detected but there is already an `index.md` in the same folder", path.display()