Add some settings to the config.

main
Tom Alexander 6 months ago
parent 933387eb6f
commit 2350390148
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -4,10 +4,17 @@ use serde::Serialize;
/// This is the struct for the writer.toml config file that ends up in each site's root directory.
#[derive(Deserialize, Serialize)]
pub(crate) struct Config {
foo: String,
site_title: String,
author: Option<String>,
email: Option<String>,
}
impl Default for Config {
fn default() -> Self {
Config { foo: "".to_owned() }
Config {
site_title: "My super awesome website".to_owned(),
author: None,
email: None,
}
}
}

Loading…
Cancel
Save