Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 918 Bytes

SETUP-comments.md

File metadata and controls

18 lines (14 loc) · 918 Bytes

Enabling comments (giscus)

Comments are powered by giscus, which stores them in your repo's GitHub Discussions. They stay disabled until the two IDs are filled in.

One-time setup

  1. Make the repo public (it already is for GitHub Pages) and enable Discussions: repo → Settings → General → Features → check Discussions.
  2. Create a Discussions category to hold comments (e.g. "Comments", announcement-type): repo → Discussions → Categories → New.
  3. Install the giscus GitHub App and grant it access to this repo: https://github.com/apps/giscus.
  4. Go to https://giscus.app, enter jwils/jwils.github.io, pick the category, and copy the generated data-repo-id and data-category-id.
  5. Paste those into src/components/Comments.astro (repoId and categoryId).

That's it — the component renders automatically once both IDs are set.