From 2d836152c83650b9a524e4df7420876fcf241f2c Mon Sep 17 00:00:00 2001 From: MrlingXD <90316914+wling-art@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20Giscus=20?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.ts | 6 ++++-- src/components/CustomPagination.astro | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/components/CustomPagination.astro diff --git a/astro.config.ts b/astro.config.ts index ba455f1d0..45ceb0a12 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -41,7 +41,8 @@ export default defineConfig({ repoId: "R_kgDOQWQ-Ng", category: "General", categoryId: "DIC_kwDOQWQ-Ns4Cx2No", - mapping: "og:title" + mapping: "og:title", + lazy: true }), starlightSidebarTopics( [ @@ -1071,7 +1072,8 @@ export default defineConfig({ ], components: { LastUpdated: "./src/components/LastUpdated.astro", - Head: "./src/components/Head.astro" + Head: "./src/components/Head.astro", + Pagination: "./src/components/CustomPagination.astro" } }), AstroPWA({ diff --git a/src/components/CustomPagination.astro b/src/components/CustomPagination.astro new file mode 100644 index 000000000..636204886 --- /dev/null +++ b/src/components/CustomPagination.astro @@ -0,0 +1,8 @@ +--- +import Comments from 'starlight-giscus/components/Comments.astro'; +import OriginalPagination from '@astrojs/starlight/components/Pagination.astro'; +--- + + + +