Skip to content

add valine comment system - #77

Closed
xCss wants to merge 1 commit into
luuman:masterfrom
xCss:master
Closed

xCss wants to merge 1 commit into
luuman:masterfrom
xCss:master

Conversation

@xCss

@xCss xCss commented Apr 4, 2018

Copy link
Copy Markdown

add valine comment system

Preview

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

@236682861

Copy link
Copy Markdown

656

@iakz

iakz commented May 7, 2019

Copy link
Copy Markdown

3232

@DeSireFire

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants