From e71e30ce86daa73f6b32b7c376397f6f10df40cd Mon Sep 17 00:00:00 2001 From: AntonObersteiner Date: Wed, 5 Jun 2024 12:38:35 +0200 Subject: [PATCH] do single-language only and link both --- .gitignore | 1 - deploy/index.html | 8 ++++++++ generate.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 deploy/index.html diff --git a/.gitignore b/.gitignore index 07f8ce0..4081fc1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ *.swo __pycache__ -deploy/index.html deploy/*/index.html diff --git a/deploy/index.html b/deploy/index.html new file mode 100644 index 0000000..dc208d2 --- /dev/null +++ b/deploy/index.html @@ -0,0 +1,8 @@ + + + + Deutsch +
+ English + + diff --git a/generate.py b/generate.py index 204f9f9..b1a5001 100755 --- a/generate.py +++ b/generate.py @@ -242,7 +242,7 @@ def write_index(text, filename = "./deploy/index.html"): def main(): template = read_template() - for language in ["", "de", "en"]: + for language in ["de", "en"]: generated = generate_text(language = language) generated = greeting[language] + "\n" + generated text = template.replace("", generated)