commit
aa8f962b96
8
.github/ISSUE_TEMPLATE/bug-report.md
vendored
8
.github/ISSUE_TEMPLATE/bug-report.md
vendored
@ -59,12 +59,4 @@ Please follow this Issue template to provide relevant information, such as sourc
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### MiniValine Configuration
|
|
||||||
|
|
||||||
<!-- Paste configuration from MiniValine (粘贴 MiniValine 配置 中的内容) -->
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Other Information <!-- (Like Browser, System, Screenshots) -->
|
## Other Information <!-- (Like Browser, System, Screenshots) -->
|
||||||
|
@ -302,11 +302,6 @@ twikoo:
|
|||||||
enable: false
|
enable: false
|
||||||
envId: #
|
envId: #
|
||||||
|
|
||||||
# 4、MiniValine
|
|
||||||
# See: https://github.com/MiniValine/MiniValine
|
|
||||||
minivaline:
|
|
||||||
enable: false
|
|
||||||
serverURL: https://minivaline.your-domain.com
|
|
||||||
|
|
||||||
# advertisement
|
# advertisement
|
||||||
# if there is an "ad" word in photo or url,it may blocked by adblock or any other browser extensions
|
# if there is an "ad" word in photo or url,it may blocked by adblock or any other browser extensions
|
||||||
|
11
_config.yml
11
_config.yml
@ -198,7 +198,7 @@ friends_link:
|
|||||||
url: https://github.com/Shen-Yu/hexo-tag-chart
|
url: https://github.com/Shen-Yu/hexo-tag-chart
|
||||||
img: /images/hexo-tag-chart.png
|
img: /images/hexo-tag-chart.png
|
||||||
|
|
||||||
# 评论:1、Valine(推荐);2、Gitalk;3、Twikoo; 4.MiniValine
|
# 评论:1、Valine(推荐);2、Gitalk;3、Twikoo;
|
||||||
|
|
||||||
# 1、Valine[一款快速、简洁且高效的无后端评论系统](https://github.com/xCss/Valine)
|
# 1、Valine[一款快速、简洁且高效的无后端评论系统](https://github.com/xCss/Valine)
|
||||||
# 启用Valine必须先创建leancloud应用, 获取 id|key 填入即可
|
# 启用Valine必须先创建leancloud应用, 获取 id|key 填入即可
|
||||||
@ -226,15 +226,6 @@ twikoo:
|
|||||||
enable: true
|
enable: true
|
||||||
envId: #
|
envId: #
|
||||||
|
|
||||||
# 4、MiniValine
|
|
||||||
# See: https://github.com/MiniValine/MiniValine
|
|
||||||
minivaline:
|
|
||||||
enable: false
|
|
||||||
# 更多选项 https://minivaline.js.org/docs/cn/#/Options 按照yml格式继续填写即可 (除了 [el] 选项)
|
|
||||||
# emoticonUrl 等列表选项 可参考 https://github.com/MiniValine/hexo-next-minivaline
|
|
||||||
# 下面是一个例子:
|
|
||||||
serverURL: https://minivaline.your-domain.com
|
|
||||||
|
|
||||||
# 首页广告配置
|
# 首页广告配置
|
||||||
# 可以根据需要自行增加ad_3,ad_4...,留空则不显示,建议图片和url不要带ad等关键词,否则可能会被adblock等插件屏蔽
|
# 可以根据需要自行增加ad_3,ad_4...,留空则不显示,建议图片和url不要带ad等关键词,否则可能会被adblock等插件屏蔽
|
||||||
ads:
|
ads:
|
||||||
|
@ -66,7 +66,6 @@
|
|||||||
<% if (!index){ %> <%- partial('post/nav') %> <% } %> <% if (theme.valine &&
|
<% if (!index){ %> <%- partial('post/nav') %> <% } %> <% if (theme.valine &&
|
||||||
theme.valine.enable && !post.no_valine){ %> <%- partial('post/valine', { key:
|
theme.valine.enable && !post.no_valine){ %> <%- partial('post/valine', { key:
|
||||||
post.slug, title: post.title, url: config.url+url_for(post.path) }) %> <% } %>
|
post.slug, title: post.title, url: config.url+url_for(post.path) }) %> <% } %>
|
||||||
<% if (is_post()) { %> <%- partial('post/gitalk') %> <% } %> <% if
|
<% if (is_post()) { %> <%- partial('post/gitalk') %> <% } %>
|
||||||
(theme.minivaline && theme.minivaline.enable && !post.no_minivaline){ %> <%-
|
<% if (is_post()) { %> <%- partial('post/twikoo') %> <% } %>
|
||||||
partial('post/minivaline') %> <% } %> <% if (is_post()) { %> <%- partial('post/twikoo') %> <% } %>
|
|
||||||
</article>
|
</article>
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
<% if (!index && post.comments){ %>
|
|
||||||
<!-- minivaline评论 -->
|
|
||||||
<div id="mvcomments-box">
|
|
||||||
<div id="mvcomments"></div>
|
|
||||||
</div>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/minivaline@6"></script>
|
|
||||||
<script>
|
|
||||||
new MiniValine(Object.assign(<%- JSON.stringify(theme.minivaline) %>, {
|
|
||||||
el: '#mvcomments',
|
|
||||||
}));
|
|
||||||
const infoEle = document.querySelector('#mvcomments .info');
|
|
||||||
if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
|
|
||||||
infoEle.childNodes.forEach(function (item) {
|
|
||||||
item.parentNode.removeChild(item);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<style>
|
|
||||||
#mvcomments-box {
|
|
||||||
padding: 5px 30px;
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 800px) {
|
|
||||||
#mvcomments-box {
|
|
||||||
padding: 5px 0px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
:root .darkmode {
|
|
||||||
--ohhho-color-p: #bbb;
|
|
||||||
--ohhho-color-text: #fff;
|
|
||||||
--ohhho-color-card: #252d38;
|
|
||||||
--ohhho-color-block: rgba(68, 68, 68, 0.65);
|
|
||||||
--ohhho-expand-before-background: linear-gradient(
|
|
||||||
180deg,
|
|
||||||
rgba(246, 246, 246, 0),
|
|
||||||
rgba(0, 0, 0, 0.9)
|
|
||||||
);
|
|
||||||
--ohhho-expand-after-background: rgba(0, 0, 0, 0.9);
|
|
||||||
}
|
|
||||||
.darkmode .ohhho pre {
|
|
||||||
background: #888;
|
|
||||||
border: 1px solid var(--ohhho-color-block);
|
|
||||||
}
|
|
||||||
.darkmode .ohhho .vlist .vcard .vcomment-body .vhead {
|
|
||||||
filter: brightness(85%);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<% } %>
|
|
Loading…
Reference in New Issue
Block a user