mirror of
https://git.feneas.org/feneas/fediverse.git
synced 2025-01-06 03:26:53 +01:00
Fix base layout, closes #45
This commit is contained in:
parent
1f43d2d483
commit
30883f8798
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user