diff --git a/src/components/ImageLightbox.astro b/src/components/ImageLightbox.astro index 4ff3457..2764f39 100644 --- a/src/components/ImageLightbox.astro +++ b/src/components/ImageLightbox.astro @@ -24,13 +24,19 @@ const items = images.map((item) => ({ ...getSize(item), src: item.dataset.originalSrc || item.currentSrc || item.src, - alt: item.alt + msrc: item.currentSrc || item.src, + alt: item.alt, + element: item })); lightboxPromise ??= import('photoswipe/lightbox').then(({ default: PhotoSwipeLightbox }) => { const lightbox = new PhotoSwipeLightbox({ pswpModule: () => import('photoswipe'), - bgClickAction: 'close' + bgClickAction: 'close', + showHideAnimationType: 'zoom', + showAnimationDuration: 360, + hideAnimationDuration: 300, + easing: 'cubic-bezier(0.22, 1, 0.36, 1)' }); lightbox.init(); return lightbox; diff --git a/src/content/posts/2026/08/august.md b/src/content/posts/2026/08/august.md new file mode 100644 index 0000000..5bed51a --- /dev/null +++ b/src/content/posts/2026/08/august.md @@ -0,0 +1,11 @@ +--- +title: "八月记" +pubDate: "2026-08-27T06:42:43.447Z" +categories: ['生活'] +tags: ['总结'] +draft: false +--- + +## 序 + +Cue 一下去年年初写的[《复盘我这庸碌的寒假》](https://www.luming.cool/posts/2025/02/winter-holiday-summary/),因为我的暑假比它还庸碌。 \ No newline at end of file