From 9eda7172c4fdd78437a87d3442da77c3cc87fc43 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 27 Feb 2024 20:22:11 +0100 Subject: [PATCH] add impressum --- src/main.rs | 8 ++++++++ templates/impressum.html | 17 +++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 templates/impressum.html diff --git a/src/main.rs b/src/main.rs index 413ddbf..19ab092 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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. diff --git a/templates/impressum.html b/templates/impressum.html new file mode 100644 index 0000000..4aca3e5 --- /dev/null +++ b/templates/impressum.html @@ -0,0 +1,17 @@ + + {{head}} + + {{header}} +
+

Impressum

+
    +
  1. Name: Philipp Hofer
  2. +
  3. Anschrift: Rubinweg 8, 4225 Luftenberg
  4. +
  5. Kontakt: philipp ÄT hofer PUNKT link
  6. +
+
+ {{footer}} + + + +