Giter Club home page Giter Club logo

Comments (6)

dillonzq avatar dillonzq commented on July 18, 2024 1

哈喽,@yangzhaoyunfei
你是在 localhost 调试吗?目前所有的评论系统在 localhost 上都不生效

from loveit.

dillonzq avatar dillonzq commented on July 18, 2024

谢谢建议,会尽快增加这个配置

from loveit.

yangzhaoyunfei avatar yangzhaoyunfei commented on July 18, 2024

这一版你的Valine 评论系统能用吗,我的没生效啊,两三个前是有的,今天更新了一下,不显示了

from loveit.

gears233 avatar gears233 commented on July 18, 2024

这一版你的Valine 评论系统能用吗,我的没生效啊,两三个前是有的,今天更新了一下,不显示了

我这边没问题,你那边用不了的话 可以考虑手动改下 comments.html 页面里的一段配置

new Valine({ el: "#vcomments", appId: "{{ .Site.Params.valine.appId }}", appKey: "{{ .Site.Params.valine.appKey }}", meta: ['nick', 'mail',], notify: "{{ .Site.Params.valine.notify }}", verify: "{{ .Site.Params.valine.verify }}", avatar: "{{ .Site.Params.valine.avatar }}", placeholder: "{{ .Site.Params.valine.placeholder }}", visitor: "{{ .Site.Params.valine.visitor }}", recordIP: "{{ .Site.Params.valine.recordIP }}", lang: "{{ TvalineLang }}", }); })();

上面的 如 "{{ ***** }}",这样的,直接按 Valine 官方的配置格式,修改相应的内容应该就可以了。

comments.html 这个文件位于 \layouts\partials 下。然后,这个文件改动过后,config.toml 里面关于Valine的配置就不会对 改动部分生效了。

另外,建议你用模板后,把模板里面的内容按文件夹形式复制一份到 根目录下,这样子Hugo 生成的时候是优先使用 根目录下的配置的,没有的部分才是从模板找。以后,模板有关文件更新了,你就对比下改动的部分内容,有需要再修改或覆盖根目录下的文件。

from loveit.

dillonzq avatar dillonzq commented on July 18, 2024

哈喽,@gears233
已经在 #66 中改进

from loveit.

yangzhaoyunfei avatar yangzhaoyunfei commented on July 18, 2024

哈喽,@yangzhaoyunfei
你是在 localhost 调试吗?目前所有的评论系统在 localhost 上都不生效

知道了,谢谢

from loveit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.