Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update valine #1701

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

itiwll
Copy link

@itiwll itiwll commented Mar 16, 2022

PR Checklist

  • The commit message follows guidelines for NexT.
  • Tests for the changes was maked (for bug fixes / features).
    • Muse | Mist have been tested.
    • Pisces | Gemini have been tested.
  • Docs in NexT website have been added / updated (for features).

PR Type

  • Bugfix.
  • Feature.
  • Code style update (formatting, local variables).
  • Refactoring (no functional changes, no api changes).
  • Build & CI related changes.
  • Documentation.
  • Translation.
  • Other... Please describe:

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
Copy link

welcome bot commented Mar 16, 2022

Thanks so much for opening your first PR here!

@CLAassistant
Copy link

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.

@itiwll itiwll marked this pull request as draft March 16, 2022 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants