hexo-next-giscus
Version:
Giscus comment system for NexT.
40 lines (33 loc) • 1.43 kB
Markdown
# Hexo Next Giscus



[Giscus](https://giscus.app) comments system powered by [GitHub Discussions](https://docs.github.com/en/discussions) for [NexT](https://theme-next.js.org).
## Install
```bash
$ npm install hexo-next-giscus
```
## Configure
You can config those in both **hexo** or **theme** `_config.yml`
```yaml
giscus:
enable: false
repo: # Github repository name
repo_id: # Github repository id
category: # Github discussion category
category_id: # Github discussion category id
# Available values: pathname | url | title | og:title
mapping: pathname
# Available values: 0 | 1
reactions_enabled: 1
# Available values: 0 | 1
emit_metadata: 1
# Available values: light | light_high_contrast | light_protanopia | light_tritanopia | dark | dark_high_contrast | dark_protanopia | dark_tritanopia | dark_dimmed | preferred_color_scheme | transparent_dark | noborder_light | noborder_dark | noborder_gray | cobalt | purple_dark
theme: light
# Available values: en | zh-CN
lang: en
# Place the comment box above the comments
input_position: bottom
# Load the comments lazily
loading: lazy
```