CWD comments for the NexT theme.
npm install git+https://github.com/next-theme/hexo-next-cwd.gitThe 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://unpkg.com/cwd-widget@0.1.13/dist/cwd.jsBy 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.
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