diff options
author | ng0 <ng0@n0.is> | 2019-02-20 21:36:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-20 21:36:09 +0000 |
commit | db297a7a76b5eded06a2ba5aebcd78cf9927e500 (patch) | |
tree | 65e166e96e30f6d62469b732752e499bb3a78c6f | |
parent | 89affcbc95630adf83dd339d069422001680664c (diff) |
fix template
-rwxr-xr-x | template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/template.py b/template.py index 91ee0a8e..69488078 100755 --- a/template.py +++ b/template.py @@ -42,7 +42,7 @@ for in_file in glob.glob("template/*.j2"): """ Return URL for the current page in another locale. """ - return "../" + other_locale + "/" + in_file.rstrip(".j2") + return "../" + other_locale + "/" + in_file.replace('template/', '').rstrip(".j2") def url_localized(filename): return "../" + locale + "/" + filename |