diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index b36f4df..6d29278 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -52,7 +52,7 @@ const isAboutActive = isAboutPage(currentPath) {currentUI.posts} @@ -62,7 +62,7 @@ const isAboutActive = isAboutPage(currentPath) {currentUI.tags} @@ -72,7 +72,7 @@ const isAboutActive = isAboutPage(currentPath) {currentUI.about} @@ -80,33 +80,3 @@ const isAboutActive = isAboutPage(currentPath) - - diff --git a/src/components/PhotoSwipe.astro b/src/components/PhotoSwipe.astro index e2b1b8d..03b300e 100644 --- a/src/components/PhotoSwipe.astro +++ b/src/components/PhotoSwipe.astro @@ -21,6 +21,7 @@ pswpModule: () => pswp, closeSVG: '', zoomSVG: '', + padding: { top: window.innerHeight * 0.1, bottom: window.innerHeight * 0.1, left: window.innerWidth * 0.06, right: window.innerWidth * 0.06 }, wheelToZoom: true, arrowPrev: false, arrowNext: false, diff --git a/src/components/Scrollbar.astro b/src/components/Scrollbar.astro index f20ad32..8f38683 100644 --- a/src/components/Scrollbar.astro +++ b/src/components/Scrollbar.astro @@ -7,11 +7,11 @@ function initScrollbar() { const bodyElement = document.body if (!bodyElement.hasAttribute('data-scrollbar-initialized')) { scrollbarsInstance = OverlayScrollbars({ - target: bodyElement, - cancel: { - nativeScrollbarsOverlaid: true, // don't initialize the overlay scrollbar if there is a native one - } - }, { + target: bodyElement, + cancel: { + nativeScrollbarsOverlaid: true, + }, + }, { scrollbars: { theme: document.documentElement.classList.contains('dark') ? 'scrollbar-dark' : 'scrollbar-light', autoHide: 'scroll', diff --git a/src/content/posts/容忍与自由.md b/src/content/posts/容忍与自由.md index d9dde6b..22caee5 100644 --- a/src/content/posts/容忍与自由.md +++ b/src/content/posts/容忍与自由.md @@ -1,9 +1,11 @@ --- title: 容忍与自由 -published: 1959-03-16 +published: 2024-03-16 tags: ["胡适"] --- +![](https://image.radishzz.cc/image/01-oneui/14.webp) + 十七八年前,我最后一次会见我的母校康耐儿大学的史学大师布尔先生(George Lincoln Burr)。我们谈到英国史学大师阿克顿(Lord Acton)一生准备要著作一部《自由之史》,没有写成他就死了。布尔先生那天谈话很多,有一句话我至今没有忘记。他说,“我年纪越大,越感觉到容忍(tolerance)比自由更重要”。 布尔先生死了十多年了,他这句话我越想越觉得是一句不可磨灭的格言。我自己也有“年纪越大,越觉得容忍比自由还更重要”的感想。有时我竟觉得容忍是一切自由的根本:没有容忍,就没有自由。 diff --git a/src/content/posts/故乡.md b/src/content/posts/故乡.md index 44be259..8c719f4 100644 --- a/src/content/posts/故乡.md +++ b/src/content/posts/故乡.md @@ -1,9 +1,11 @@ --- title: 故鄉 -published: 1921-01-10 +published: 2024-01-10 tags: ["鲁迅"] --- +![](https://image.radishzz.cc/image/01-oneui/21.webp) + 我冒了嚴寒,回到相隔二千餘里,別了二十餘年的故鄉去。 時候既然是深冬;漸近故鄉時,天氣又陰晦了,冷風吹進船艙中,嗚嗚的響,從蓬隙向外一望,蒼黃的天底下,遠近橫著幾個蕭索的荒村,沒有一些活氣。我的心禁不住悲涼起來了。 diff --git a/src/content/posts/羅生門.md b/src/content/posts/羅生門.md index 672ca3a..4f77154 100644 --- a/src/content/posts/羅生門.md +++ b/src/content/posts/羅生門.md @@ -1,9 +1,11 @@ --- title: 羅生門 -published: 1971-03-05 +published: 2024-03-05 tags: ["芥川龙之介"] --- +![](https://fuwari.vercel.app/_astro/cover.CgGywNHJ_1wRFtk.webp) + ある日の暮方の事である。一人の下人げにんが、羅生門らしょうもんの下で雨やみを待っていた。 広い門の下には、この男のほかに誰もいない。ただ、所々丹塗にぬりの剥はげた、大きな円柱まるばしらに、蟋蟀きりぎりすが一匹とまっている。羅生門が、朱雀大路すざくおおじにある以上は、この男のほかにも、雨やみをする市女笠いちめがさや揉烏帽子もみえぼしが、もう二三人はありそうなものである。それが、この男のほかには誰もいない。 diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index 3cbd8f5..74daee4 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -38,7 +38,7 @@ const postsByYear = await getPostsByYear(lang) // Year Group
{/* Year */} - + {/* Posts List */}