Fix base layout, closes #45

This commit is contained in:
lostinlight 2019-11-29 23:46:17 +03:00
parent 1f43d2d483
commit 30883f8798

View file

@ -6,7 +6,8 @@ hexo.extend.helper.register('switch_lang', switchLang);
hexo.extend.helper.register('getPath', getPath); hexo.extend.helper.register('getPath', getPath);
function isRoot() { 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() { function getLangs() {