mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-11-25 18:11:26 +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);
|
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() {
|
||||||
|
|
Loading…
Reference in a new issue