mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
fix(docs): update giscus blog post (#392)
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: node:18
|
image: node:20
|
||||||
ports:
|
ports:
|
||||||
- 4321:4321
|
- 4321:4321
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
author: FjellOverflow
|
author: FjellOverflow
|
||||||
pubDatetime: 2024-07-25T11:11:53Z
|
pubDatetime: 2024-07-25T11:11:53Z
|
||||||
|
modDatetime: 2024-09-25T12:07:53Z
|
||||||
title: How to integrate Giscus comments into AstroPaper
|
title: How to integrate Giscus comments into AstroPaper
|
||||||
slug: how-to-integrate-giscus-comments
|
slug: how-to-integrate-giscus-comments
|
||||||
featured: true
|
featured: true
|
||||||
@@ -189,10 +190,12 @@ Note that specifying a `theme` here will override the `lightTheme` and `darkThem
|
|||||||
To complete the process, add the new Comments component to `src/layouts/PostDetails.astro` (replacing the `script` tag from the previous step).
|
To complete the process, add the new Comments component to `src/layouts/PostDetails.astro` (replacing the `script` tag from the previous step).
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
|
+ import Comments from "@components/Comments";
|
||||||
|
|
||||||
<ShareLinks />
|
<ShareLinks />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
+ <Comments client:only />
|
+ <Comments client:only="react" />
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|||||||
Reference in New Issue
Block a user