remove: mv

This commit is contained in:
MHuiG 2022-08-21 15:46:57 +08:00
parent 4c6353ef4f
commit f5c57c26a4
No known key found for this signature in database
GPG Key ID: BA16368BD4C4169C
5 changed files with 3 additions and 73 deletions

View File

@ -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) -->

View File

@ -302,11 +302,6 @@ twikoo:
enable: false
envId: #
# 4、MiniValine
# See: https://github.com/MiniValine/MiniValine
minivaline:
enable: false
serverURL: https://minivaline.your-domain.com
# advertisement
# if there is an "ad" word in photo or urlit may blocked by adblock or any other browser extensions

View File

@ -198,7 +198,7 @@ friends_link:
url: https://github.com/Shen-Yu/hexo-tag-chart
img: /images/hexo-tag-chart.png
# 评论1、Valine(推荐)2、Gitalk3、Twikoo; 4.MiniValine
# 评论1、Valine(推荐)2、Gitalk3、Twikoo;
# 1、Valine[一款快速、简洁且高效的无后端评论系统](https://github.com/xCss/Valine)
# 启用Valine必须先创建leancloud应用 获取 id|key 填入即可
@ -226,15 +226,6 @@ twikoo:
enable: true
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_3ad_4...留空则不显示建议图片和url不要带ad等关键词否则可能会被adblock等插件屏蔽
ads:

View File

@ -66,7 +66,6 @@
<% if (!index){ %> <%- partial('post/nav') %> <% } %> <% if (theme.valine &&
theme.valine.enable && !post.no_valine){ %> <%- partial('post/valine', { key:
post.slug, title: post.title, url: config.url+url_for(post.path) }) %> <% } %>
<% if (is_post()) { %> <%- partial('post/gitalk') %> <% } %> <% if
(theme.minivaline && theme.minivaline.enable && !post.no_minivaline){ %> <%-
partial('post/minivaline') %> <% } %> <% if (is_post()) { %> <%- partial('post/twikoo') %> <% } %>
<% if (is_post()) { %> <%- partial('post/gitalk') %> <% } %>
<% if (is_post()) { %> <%- partial('post/twikoo') %> <% } %>
</article>

View File

@ -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>
<% } %>