Add some settings to the config.

This commit is contained in:
Tom Alexander 2023-10-18 20:30:32 -04:00
parent 933387eb6f
commit 2350390148
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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,
}
}
}