Skip to content

Commit 5206513

Browse files
authored
🐛 修复 Giscus 位置 (#71)
1 parent c5441b8 commit 5206513

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

astro.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export default defineConfig({
4141
repoId: "R_kgDOQWQ-Ng",
4242
category: "General",
4343
categoryId: "DIC_kwDOQWQ-Ns4Cx2No",
44-
mapping: "og:title"
44+
mapping: "og:title",
45+
lazy: true
4546
}),
4647
starlightSidebarTopics(
4748
[
@@ -1071,7 +1072,8 @@ export default defineConfig({
10711072
],
10721073
components: {
10731074
LastUpdated: "./src/components/LastUpdated.astro",
1074-
Head: "./src/components/Head.astro"
1075+
Head: "./src/components/Head.astro",
1076+
Pagination: "./src/components/CustomPagination.astro"
10751077
}
10761078
}),
10771079
AstroPWA({
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
import Comments from 'starlight-giscus/components/Comments.astro';
3+
import OriginalPagination from '@astrojs/starlight/components/Pagination.astro';
4+
---
5+
6+
<OriginalPagination />
7+
8+
<Comments />

0 commit comments

Comments
 (0)