diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index b0e3ae14..1b35348e 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -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() } //检查是否开启快捷键 diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index 060e9734..03259b0b 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -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;