aboutsummaryrefslogtreecommitdiff
path: root/site.py
diff options
context:
space:
mode:
Diffstat (limited to 'site.py')
-rw-r--r--site.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/site.py b/site.py
index b38f993..38f61c1 100644
--- a/site.py
+++ b/site.py
@@ -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":