diff --git a/netlify.toml b/netlify.toml index bb391d3..f43d6df 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] - command = "rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh" + command = "rm -rf __obsidian __site && mkdir __obsidian && find . -maxdepth 1 ! -name '__obsidian' -exec mv {} __obsidian/ \\; && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh" publish = "public" [build.environment]