Commit 30883f87 authored by lostinlight's avatar lostinlight

Fix base layout, closes #45

parent 1f43d2d4
Pipeline #2987 passed with stages
in 4 minutes and 19 seconds
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment