From 23503901481b193bc1e3cfb77a6630ede7f3c882 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 18 Oct 2023 20:30:32 -0400 Subject: [PATCH] Add some settings to the config. --- src/config/definition.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/config/definition.rs b/src/config/definition.rs index 136ae6f..fb8c1bc 100644 --- a/src/config/definition.rs +++ b/src/config/definition.rs @@ -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, + email: Option, } + impl Default for Config { fn default() -> Self { - Config { foo: "".to_owned() } + Config { + site_title: "My super awesome website".to_owned(), + author: None, + email: None, + } } }