Xin 46dea718e6
docs: add giscus comments system (#96)
* chore: rename comment to comments

* docs: add giscus comments

* docs: update
2023-09-26 23:33:27 +01:00

938 B

title linkTitle
Comments System Comments

Hextra supports adding comments system to your site. Currently giscus is supported.

giscus

giscus is a comments system powered by GitHub Discussions. It is free and open source.

To enable giscus, you need to add the following to the site configuration file:

params:
  comments:
    enable: false
    type: giscus

    giscus:
      repo: <repository>
      repoId: <repository ID>
      category: <category>
      categoryId: <category ID>

The giscus configurations can be constructed from the giscus.app website. More details can also be found there.

Comments can be enabled or disabled for a specific page in the page front matter:

---
title: About
comments: true
---