Fix base layout, closes #45

This commit is contained in:
lostinlight 2019-11-29 23:46:17 +03:00
parent 1f43d2d483
commit 30883f8798
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ hexo.extend.helper.register('switch_lang', switchLang);
hexo.extend.helper.register('getPath', getPath);
function isRoot() {
return this.page.path === 'index.html';
const lang = this.page.lang;
return this.page.path === 'index.html' || this.page.path === `${lang}/index.html`;
}
function getLangs() {