commit
2268449e55
|
@ -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()
|
||||
}
|
||||
|
||||
//检查是否开启快捷键
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue