Personal blog still closed? Vuepress theme hope uses giscus's comment function to chat with friends
About 177 wordsLess than 1 minuteNovember 22, 2024
Principle
The principle is based on GitHub Discussions.
Enable Comments for Blog
Create a Public Repository
First, create a public repository to store comments.
Then, set up Discussions in the repository settings.
Get Giscus
Install the Giscus app on GitHub.
Retrieve repo, repoId, category, categoryId from the generated script tag.
Blog Configuration
Configure in config.js.
theme: hopeTheme({
plugins: {
comment: {
provider: "Giscus",
repo: "",
repoId: "",
category: "",
categoryId: "",
mapping: "",
},
},
});