[TASK] add theme toggler in footer
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 6m53s
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 6m53s
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user