[TASK] add theme toggler in footer
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 6m53s

This commit is contained in:
Marie Birner
2024-02-19 18:11:02 +01:00
parent ba4b54490a
commit f3919f5369
7 changed files with 179 additions and 39 deletions

View File

@@ -124,6 +124,9 @@ fn main() {
let js = fs::read_to_string("templates/app.js").unwrap();
fs::write(&format!("output/app.js"), &js).expect("Unable to write file");
let js = fs::read_to_string("templates/toggle.js").unwrap();
fs::write(&format!("output/toggle.js"), &js).expect("Unable to write file");
let mut index = fs::read_to_string("templates/index.html").unwrap();
index = index.replace("{{content}}", &li_of_files);
fs::write(&format!("output/index.html"), &index).expect("Unable to write file");