add datenschutz page
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 1m24s
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 1m24s
This commit is contained in:
10
src/main.rs
10
src/main.rs
@ -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();
|
||||
|
Reference in New Issue
Block a user