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 valine comment system #77

Closed
wants to merge 1 commit into from
Closed

add valine comment system #77

wants to merge 1 commit into from

Conversation

@xCss
Copy link

@xCss xCss commented Apr 4, 2018

add valine comment system

Preview

screencapture-localhost-4000-2017-10-24-hello-world-2018-04-04-11_59_46

@236682861
Copy link

@236682861 236682861 commented Apr 15, 2019

656

@iakz
Copy link

@iakz iakz commented May 7, 2019

3232

@DeSireFire
Copy link

@DeSireFire DeSireFire commented May 20, 2020

hexo-theme-spfk 主题的修改存在一点问题。
layout/partial/after-footer.ejs 和
layout/partial/toc.ejs 文件中

<%- js(‘https://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min') %>
改为:
<%- js(‘//cdn.bootcss.com/jquery/1.11.1/jquery.min.js’) %>
会导致main.js出现require is not defind 错误。缺少了require

提出解决方案:
<%- js(‘//cdn.bootcdn.net/ajax/libs/require.js/2.3.6/require.js’) %>
<%- js(‘//cdn.bootcss.com/jquery/1.11.1/jquery.min.js’) %>

另外:
layout/_partial/comments/valine.ejs 文件中

<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>

此处cdn不支持https访问,
会导致使用强制HTTPS访问或者类似cloudflare SSL加密模式的用户,出现浏览器拦截和划红线问题。

提出解决方案:(其他hexo主题通用)
1.个人上传的一个cdn源(可供选用)支持https:

<script src="//i.moeacg.cn/js/av-min.js"></script>

2.将//cdn1.lncld.net/static/js/3.0.4/av-min.js复制下来本地化

@xCss xCss closed this May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants