Merge pull request #394 from chengzhongxue/main

首页分页隐藏置顶内容
This commit is contained in:
困困鱼 2023-08-07 22:14:33 +08:00 committed by GitHub
commit 2268449e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View File

@ -635,8 +635,20 @@ function percent() {
window.onscroll = percent
}
// 首页分页隐藏置顶内容
function checkUrlAndAddHideBanner() {
var e = window.location.href;
if (/\/page\//.test(e)) {
var t = document.getElementById("recent-top-post-group")
, o = document.getElementById("bbTimeList");
t && (t.classList.add("more-page"),
o && o.classList.add("more-page"));
}
}
function initBlog() {
heo.initIndexEssay()
heo.initIndexEssay(),
checkUrlAndAddHideBanner()
}
//检查是否开启快捷键

View File

@ -8925,6 +8925,10 @@ li {
height: 50px;
}
#bbTimeList.more-page {
margin-bottom: 0;
}
#bbTimeList:hover {
border: var(--style-border-hover);
box-shadow: var(--heo-shadow-main);
@ -9508,6 +9512,10 @@ ins.adsbygoogle {
margin-bottom: 0rem;
}
.recent-top-post-group.more-page {
display: none;
}
.recent-post-top {
display: flex;
flex-direction: row;