Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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://unpkg.com/cwd-widget@0.1.13/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

Watchers

Forks

Releases

Packages

Contributors

Languages