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

无法添加 gitalk 评论 #469

Open
cynicalight opened this issue Nov 13, 2024 · 1 comment
Open

无法添加 gitalk 评论 #469

cynicalight opened this issue Nov 13, 2024 · 1 comment

Comments

@cynicalight
Copy link

无法添加 gitalk 评论

已在 config.toml 中设置:

    # 是否开启(全局设置)
    enableComments = true
    # 说明:文章的 Front Matter 中的 `comments`
    #      的优先级高于此处

    # 直接加载评论,不需要手动点击按钮加载
    autoLoadComments = true

    ## Gitalk
    enableGitalk = true
    gitalkClientID = "Ov23liPExxxxxxxxxxx"
    gitalkClientSecret = "7d4d1885f291fa04xxxxxxxxxx"
    gitalkRepo = "cynicalight.github.io"
    gitalkOwner = "cynicalight"
    gitalkAdmin = ["cynicalight"]

    # 1. default (`location.href`)
    # 2. pathname (`location.pathname`)
    # 3. hash (hash_filepath)
    # 4. custom:your_gitalk_id ("your_gitalk_id")
    gitalkID = "pathname"

    gitalkNumber = -1
    gitalkLables = ["Gitalk"]

    # 1. default (`document.title`)
    # 2. custom:your_gitalk_title ("your_gitalk_title")
    gitalkTitle = "default"

    # 1. default (`location.href` + header.meta[description])
    # 2. href (`location.href`)
    # 3. custom:your_gitalk_body ("your_gitalk_body")
    gitalkBody = "default"

    # 1. default (`navigator.language || navigator.userLanguage`)
    # 2. Support [en, zh-CN, zh-TW, es-ES, fr, ru, de, pl, ko, fa, ja]
    gitalkLanguage = "zh-CN"

    gitalkDistractionFreeMode = false
    gitalkPerPage = 10
    gitalkPagerDirection = "last"
    gitalkCreateIssueManually = false
    gitalkProxy = "https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token"
    gitalkStaggerDelayBy = 150
    gitalkAppearAnimation = "accordionVertical"
    gitalkEnterAnimation = "accordionVertical"
    gitalkLeaveAnimation = "accordionVertical"
    gitalkEnableHotKey = true
    # 说明:https://github.com/gitalk/gitalk

尝试过 valine 也无法开启,网页不显示评论区。

@cynicalight
Copy link
Author

giscus可以了

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

No branches or pull requests

1 participant