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 comment function #289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add comment function #289

wants to merge 1 commit into from

Conversation

xiyuvi
Copy link

@xiyuvi xiyuvi commented Jan 17, 2025

The search component I previously contributed reported an error and was not accepted, so I restored the branch and submitted the addition of the comment function
image
reference resources https://twikoo.js.org/intro.html To obtain the relevant parameters, then fill in the following code in config. ts, which has reserved fields for compatibility with other comment systems in the future

//comment
export const commentConfig = {
  enable:true,
  //https://twikoo.js.org/intro.html A simple, safe, free comment system.
  twikoo: {
    enable:true,
    envId:'https://yourenvId.netlify.app/.netlify/functions/twikoo', // your twikoo envId
    lang: 'zh-CN', // https://github.com/twikoojs/twikoo/blob/main/src/client/utils/i18n/index.js
  }
}

Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuwari-yags ❌ Failed (Inspect) Jan 17, 2025 8:00am

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.

1 participant