index : livejrnl-rs.git

ascending towards madness

author berrysweet <berrysweet@noreply.codeberg.org> 2023-07-06 10:23:29.0 +00:00:00
committer berrysweet <berrysweet@noreply.codeberg.org> 2023-07-06 10:23:29.0 +00:00:00
commit
bc205e82eeb6496c381f29b562439bdd339aed6c [patch]
tree
742765d940826fa38d2e8cf72962e5b4060acf09
parent
2b780be532ce858b348917432e303006ca45084b
download
bc205e82eeb6496c381f29b562439bdd339aed6c.tar.gz

feat: add new config keys BREAKING CHANGE: config file must contain `template_index` and `site_language`



Diff

 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