From bc205e82eeb6496c381f29b562439bdd339aed6c Mon Sep 17 00:00:00 2001 From: berrysweet Date: Thu, 6 Jul 2023 12:23:29 +0200 Subject: [PATCH] feat: add new config keys BREAKING CHANGE: config file must contain `template_index` and `site_language` --- src/data/formats.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/data/formats.rs b/src/data/formats.rs index 78701f3..e37aa44 100644 --- a/src/data/formats.rs +++ b/src/data/formats.rs @@ -7,7 +7,9 @@ pub struct RenderConfig { pub base_url: String, pub author: String, pub template: String, + pub template_index: String, pub site_description: String, + pub site_language: String } impl ::std::default::Default for RenderConfig { @@ -17,7 +19,9 @@ impl ::std::default::Default for RenderConfig { base_url: String::from("localhost"), author: String::from("me"), template: String::from("/dev/null"), - site_description:String::from("This is a site rendered with livejrnl-rs.").into() + template_index: String::from("index.html.template"), + site_description: String::from("This is a site rendered with livejrnl-rs."), + site_language: String::from("en") } } } \ No newline at end of file -- libgit2 1.7.2