fix: remove useless import

This commit is contained in:
KazooTTT
2024-10-11 21:18:20 +08:00
parent a5e1e93c0d
commit a93babf9b8

View File

@ -89,15 +89,4 @@ const { headings } = await post.render()
const observer = new IntersectionObserver(callback)
observer.observe(targetHeader)
import PhotoSwipeLightbox from 'photoswipe/lightbox'
import 'photoswipe/style.css'
const lightbox = new PhotoSwipeLightbox({
gallery: '#blog-gallery',
children: 'a',
pswpModule: () => import('photoswipe')
})
lightbox.init()
</script>