theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.15k stars 2.05k forks source link

Update valine #1701

Open itiwll opened 2 years ago

itiwll commented 2 years ago

PR Checklist

PR Type

What is the current behavior?

Issue resolved: N/A

What is the new behavior?

Supported Valine's requiredFields,enableQQ options and remove deprecated verify,enableQQ options.

How to use?

In NexT _config.yml:

valine:
  enable: true
  appid: # Your leancloud application appid
  appkey: # Your leancloud application appkey
  notify: true # Mail notifier
  verify: true # Verification code
  placeholder: 半亩方塘一鉴开,天光云影共徘徊。问渠那得清如许?为有源头活水来 # Comment box placeholder
  avatar: # Gravatar style
  guest_info: nick,mail,link # Custom comment header
  requiredFields: nick,mail
  pageSize: 10 # Pagination size
  language: zh-cn # Language, available values: en, zh-cn
  visitor: true # Article reading statistic
  comment_count: true # If false, comment count will only be displayed in post page, not in home page
  recordIP: true # Whether to record the commenter IP
  serverURLs: # When the custom domain name is enabled, fill it in here (it will be detected automatically by default, no need to fill in)
  enableQQ: true
welcome[bot] commented 2 years ago

Thanks so much for opening your first PR here!

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.