Move content to `content` folder

main
trivernis 9 months ago
parent 244489ef7f
commit 55caec2fff
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -25,9 +25,14 @@ impl SiloRepo {
} }
let config = read_config(path)?; let config = read_config(path)?;
let pctx = ParseContext::new(GlobSet::empty(), config.clone()); let pctx = ParseContext::new(GlobSet::empty(), config.clone());
let content_path = path.join("content");
if !content_path.exists() {
bail!("No content stored in this dotfiles repo");
}
Ok(Self { Ok(Self {
contents: Contents::parse(pctx, path.to_owned())?, contents: Contents::parse(pctx, content_path)?,
config, config,
}) })
} }

Loading…
Cancel
Save