Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/next-theme/hexo-next-giscus
Giscus comment system for NexT
https://github.com/next-theme/hexo-next-giscus
Last synced: 1 day ago
JSON representation
Giscus comment system for NexT
- Host: GitHub
- URL: https://github.com/next-theme/hexo-next-giscus
- Owner: next-theme
- License: mit
- Created: 2021-07-08T08:31:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T05:25:15.000Z (7 months ago)
- Last Synced: 2024-10-31T10:38:25.675Z (8 days ago)
- Language: Nunjucks
- Size: 16.6 KB
- Stars: 23
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-next - hexo-next-giscus
README
# Hexo Next Giscus
![Theme Version](https://img.shields.io/badge/NexT-v8.4.0+-blue?style=flat-square)
![Package Version](https://img.shields.io/github/package-json/v/next-theme/hexo-next-giscus?style=flat-square)
![License](https://img.shields.io/github/license/next-theme/hexo-next-giscus?style=flat-square)[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
```