add impressum
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 1m31s

This commit is contained in:
philipp 2024-02-27 20:22:11 +01:00
parent c323954327
commit 9eda7172c4
2 changed files with 25 additions and 0 deletions

View File

@ -12,6 +12,14 @@ fn main() {
create_static_files();
create_index(&overview);
create_impressum();
}
/// Creates the `index.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 `index.html` file.

17
templates/impressum.html Normal file
View File

@ -0,0 +1,17 @@
<html lang="de" data-theme="dark">
{{head}}
<body>
{{header}}
<main class="container">
<h1><mark>Impressum</mark></h1>
<ol>
<li>Name: Philipp Hofer</li>
<li>Anschrift: Rubinweg 8, 4225 Luftenberg</li>
<li>Kontakt: philipp ÄT hofer PUNKT link</li>
</ol>
</main>
{{footer}}
<script src="app.js"></script>
</body>
</html>