Skip to content

Commit c11b2a2

Browse files
authored
fix(docs): update giscus blog post (#392)
1 parent 149264a commit c11b2a2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
services:
44
app:
5-
image: node:18
5+
image: node:20
66
ports:
77
- 4321:4321
88
working_dir: /app

src/content/blog/how-to-integrate-giscus-comments.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
author: FjellOverflow
33
pubDatetime: 2024-07-25T11:11:53Z
4+
modDatetime: 2024-09-25T12:07:53Z
45
title: How to integrate Giscus comments into AstroPaper
56
slug: how-to-integrate-giscus-comments
67
featured: true
@@ -189,10 +190,12 @@ Note that specifying a `theme` here will override the `lightTheme` and `darkThem
189190
To complete the process, add the new Comments component to `src/layouts/PostDetails.astro` (replacing the `script` tag from the previous step).
190191

191192
```diff
193+
+ import Comments from "@components/Comments";
194+
192195
<ShareLinks />
193196
</div>
194197

195-
+ <Comments client:only />
198+
+ <Comments client:only="react" />
196199

197200
</main>
198201
<Footer />

0 commit comments

Comments
 (0)