From db58ac523c9d505b5d459f595d7f587d73d61fc1 Mon Sep 17 00:00:00 2001 From: faturachmanyusup Date: Thu, 27 Oct 2022 01:16:03 +0700 Subject: [PATCH] Fix: translated pages not found on landing page --- index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 46cb6508..fa84edff 100644 --- a/index.html +++ b/index.html @@ -19,12 +19,14 @@ relativePath: true, auto2top: false, alias: { - '/(README.*)': '/translations/$1', - '/((?!README).*)/README.(.*)': '$1/translations/README.$2', + '/(README.(.*))': '/translations/$1', + '#/((?!README).*)/README.(.*)': '$1/translations/README.$2', + '/((?!README).*)/((?!README).*)/README.(.*)': '$1/$2/translations/README.$3', // handle English, since English files isn't in translation folders '/(README$)': '/$1', - '/((?!README).*)/(README$)': '$1/$2' + '#/((?!README).*)/(README$)': '$1/$2', + '/((?!README).*)/((?!README).*)/(README$)': '$1/$2/$3' } }