添加首页样式

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

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

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

Loading…
Cancel
Save