Skip to content

About

CWD comment system for the NexT theme.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Hexo NexT CWD

CWD comments for the NexT theme.

Install

npm install git+https://github.com/next-theme/hexo-next-cwd.git

Configure

The configuration can be placed in either the Hexo or NexT theme _config.yml:

cwd:
  enable: false
  api_base_url: # Your deployed CWD API endpoint
  site_id: # Recommended for multi-site data isolation
  lang: auto
  # Available values: auto | light | dark
  theme: auto
  page_size: 20
  custom_css_url:
  js: https://cdn.jsdelivr.net/npm/cwd-widget@0.2.1/dist/cwd.js

By default, the comment thread identifier is CONFIG.page.path, which normally does not start with /. Set cwd_post_slug in a page's front matter to override it.

Custom Widget Builds

The js option can point to any browser build exposing window.CWDComments. This makes it possible to use an unreleased fork or a locally hosted build:

cwd:
  js: /lib/cwd/cwd.js

About

CWD comment system for the NexT theme.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages