diff options
Diffstat (limited to 'site.py')
-rw-r--r-- | site.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -89,8 +89,12 @@ class gen_site: | |||
89 | """ | 89 | """ |
90 | Return URL for the current page in another locale. | 90 | Return URL for the current page in another locale. |
91 | """ | 91 | """ |
92 | return "../" + other_locale + "/" + in_file.replace( | 92 | if root == "news": |
93 | root + '/', '').rstrip(".j2") | 93 | return "../../" + other_locale + "/news/" + in_file.replace( |
94 | root + '/', '').rstrip(".j2") | ||
95 | else: | ||
96 | return "../" + other_locale + "/" + in_file.replace( | ||
97 | root + '/', '').rstrip(".j2") | ||
94 | 98 | ||
95 | def url_localized(filename): | 99 | def url_localized(filename): |
96 | if root == "news": | 100 | if root == "news": |