do single-language only and link both
This commit is contained in:
parent
b4104d1717
commit
e71e30ce86
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,5 +2,4 @@
|
|||
*.swo
|
||||
|
||||
__pycache__
|
||||
deploy/index.html
|
||||
deploy/*/index.html
|
||||
|
|
8
deploy/index.html
Normal file
8
deploy/index.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<a href="/de/index.html"> Deutsch </a>
|
||||
<br />
|
||||
<a href="/en/index.html"> English </a>
|
||||
</body>
|
||||
</html>
|
|
@ -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("<replace with text>", generated)
|
||||
|
|
Loading…
Reference in a new issue