Browse Source

Let people edit their index.md

Closes #241
index-subcmd
Vincent Prouillet 6 years ago
parent
commit
5c56278be1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/rebuild/src/lib.rs

+ 1
- 1
components/rebuild/src/lib.rs View File

@@ -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()


Loading…
Cancel
Save