add datenschutz page
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 1m24s

This commit is contained in:
2024-02-27 20:40:46 +01:00
parent 9eda7172c4
commit 7838ee4e64
3 changed files with 55 additions and 2 deletions

View File

@ -13,15 +13,23 @@ fn main() {
create_index(&overview);
create_impressum();
create_datenschutz();
}
/// Creates the `index.html` file.
/// Creates the `impressum.html` file.
fn create_impressum() {
let index = fs::read_to_string("templates/impressum.html").unwrap();
let index = Parts::new().perform(index);
fs::write("output/impressum.html", index).expect("Unable to write file");
}
/// Creates the `datenschutz.html` file.
fn create_datenschutz() {
let index = fs::read_to_string("templates/datenschutz.html").unwrap();
let index = Parts::new().perform(index);
fs::write("output/datenschutz.html", index).expect("Unable to write file");
}
/// Creates the `index.html` file.
fn create_index(content: &str) {
let mut index = fs::read_to_string("templates/index.html").unwrap();