添加首页样式

master
落雨楓 1 month ago
parent 5125723c79
commit ed3abbdaa9

@ -96,6 +96,15 @@
"mobile"
]
},
"ext.isekai.styles.mainPage": {
"styles": [
"ext.isekai.mainPage.less"
],
"targets": [
"desktop",
"mobile"
]
},
"lib.isekai.echarts": {
"scripts": [
"lib/echarts.custom.min.js"

@ -74,7 +74,13 @@ HTML
);
}
if ($outputPage->getUser() && $outputPage->getUser()->isRegistered()) {
$outputPage->addBodyClasses(['logged-in']);
}
if ($isIsekaiWiki) {
self::showAds($outputPage);
// 百度统计
$outputPage->addHeadItem(
'baiduhm',
@ -90,14 +96,11 @@ var _hmt = _hmt || [];
</script>
HTML
);
}
if ($outputPage->getUser() && $outputPage->getUser()->isRegistered()) {
$outputPage->addBodyClasses(['logged-in']);
}
if ($isIsekaiWiki) {
self::showAds($outputPage);
if ($outputPage->isArticle() && $outputPage->getTitle()->isMainPage()) {
// 首页样式
$outputPage->addModuleStyles(['ext.isekai.styles.mainPage']);
}
}
}

Loading…
Cancel
Save