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

使用旧版Waline的js #52

Closed
sofpixaol opened this issue Aug 20, 2022 · 1 comment
Closed

使用旧版Waline的js #52

sofpixaol opened this issue Aug 20, 2022 · 1 comment
Labels
feature:view Feature request relating to view components

Comments

@sofpixaol
Copy link

Waline已经更新到2.6.3了,而这里仍然一直使用旧版1.5.4的js,为什么不改成用最新版?

jsUrl: helper.cdn('@waline/client', '1.5.4', 'dist/Waline.min.js'),

@ppoffice ppoffice added the discussion Questions and help wanted label Aug 20, 2022
@sofpixaol
Copy link
Author

sofpixaol commented Aug 20, 2022

请问作者有什么方案可以解决吗..?

我参照Waline的文档,现在在尝试修改 ./node_modules/hexo-component-inferno/lib/view/comment/waline.js 这个文件,把jsUrl那里改成了('@waline/client', '2.6.3', 'dist/waline.js') ,并且把文件第113行的Waline({改成了Waline.init({,基本上好了,但是css样式文件没有加载..没学过这些东西的语法不知道怎么让它加上css

@ppoffice ppoffice added feature:view Feature request relating to view components and removed discussion Questions and help wanted labels Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:view Feature request relating to view components
Projects
None yet
Development

No branches or pull requests

2 participants