diff --git a/config.example.toml b/config.example.toml new file mode 100644 index 0000000..0888b40 --- /dev/null +++ b/config.example.toml @@ -0,0 +1,16 @@ +[server] +host = "0.0.0.0" + +[[sites]] +slug = "etoiledebethleem" +git_remote_url = "https://forge.lefuturiste.fr/etoiledebethleem/website.git" +content_path = "content" + +[[sites.content_bindings]] +slug = "actualites" +posting_kind = "Article" + +# [[sites]] +# slug = "etoiledebethleem" +# git_remote_url = "https://forge.lefuturiste.fr/etoiledebethleem/website.git" + diff --git a/src/main.rs b/src/main.rs index c17a171..6a973b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ fn main() -> ExitCode { env_logger::init(); info!("Starting a hugotator instance..."); - let config_str = match fs::read_to_string("./tmp/config.example.toml") { + let config_str = match fs::read_to_string("./config.example.toml") { Ok(res) => res, Err(e) => { error!("Cannot read the server config file.");