mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-11-25 10:01:27 +00: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 a new issue