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

add Twikoo #813

Closed
wants to merge 2 commits into from
Closed

add Twikoo #813

wants to merge 2 commits into from

Conversation

Feiju12138
Copy link

@Feiju12138 Feiju12138 commented Jun 23, 2024

PR Checklist

  • The changes have been tested (for bug fixes / features).
  • Docs in NexT website have been added / updated (for features).

PR Type

  • Bugfix.
  • Feature.
  • Improvement.
  • Code style update (e.g. formatting, linting).
  • Refactoring (no changes to functionality and APIs).
  • Documentation.
  • Translation.
  • Other... Please describe:

What is the current behavior?

Issue resolved:

What is the new behavior?

  • Link to demo site with this changes:
  • Screenshots with this changes:

How to use?

In NexT _config.yml:

# Twikoo
# For more information: https://twikoo.js.org, https://github.com/imaegoo/twikoo
twikoo:
  enable: true
  visitor: true
  envId: twikoo-1gs9l0fb17e7897a # 环境 ID,搭建教程:https://twikoo.js.org/quick-start.html
  # region: ap-guangzhou # 环境地域,默认为 ap-shanghai
  # path: 'window.location.pathname' # 自定义文章路径
  # jsUrl: https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js # 自定义 JS 文件地址

Copy link

This pull request contains changes to the configuration file. Please make sure the documentation in NexT website is changed or added.
Please edit relevant source files here: https://github.com/next-theme/theme-next-docs/tree/master/source/docs and create a pull request with the changes here: https://github.com/next-theme/theme-next-docs/pulls

@stevenjoezhang
Copy link
Member

You can use this plugin: https://github.com/twikoojs/hexo-next-twikoo

@Feiju12138
Copy link
Author

Feiju12138 commented Jun 24, 2024

我把twikoojs/hexo-next-twikooCV过来了😂,期望原生支持Twikoo

@stevenjoezhang
Copy link
Member

将NexT的twikoo插件留给twikoo的原作者团队进行维护有以下好处:

  1. NexT是特意支持评论插件的模块化设计的,这样不需要将所有评论系统的代码都放进主仓库内,避免代码臃肿,减少维护成本;
  2. twikoo团队对插件的特性更为了解,比NexT团队维护更好一些。

因此我将不会合并这个pull request。感谢您的理解。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants