feat(navigation): hard-switch to Zibll navigation and Font Awesome 5

This commit is contained in:
2026-08-18 20:46:21 +08:00
parent 3c3ddac8be
commit a0b84977a2
630 changed files with 101647 additions and 11293 deletions
-31
View File
@@ -126,36 +126,6 @@
});
}
/* ============================================================
* 3. 文章封面轮播
* ============================================================ */
function initCoverSlider() {
var container = document.querySelector('.single-cover-slider[data-swiper-config]');
if (!container || typeof Swiper === 'undefined') return;
var config = {};
try {
config = JSON.parse(container.dataset.swiperConfig || '{}');
} catch (e) {}
new Swiper(container, Object.assign({
effect: 'fade',
fadeEffect: { crossFade: true },
loop: true,
speed: 800,
autoplay: { delay: 5000, disableOnInteraction: false },
pagination: {
el: '.single-cover-slider__pagination',
type: 'bullets',
clickable: true,
},
navigation: {
prevEl: '.single-cover-slider__prev',
nextEl: '.single-cover-slider__next',
},
}, config));
}
/* ============================================================
* 5. 粘性元素 (Sticky)
* ============================================================ */
@@ -296,7 +266,6 @@
document.addEventListener('DOMContentLoaded', function () {
initTilt();
initScrollAnimations();
initCoverSlider();
initRipple();
initSticky();
initParallax();