📦 update: valine
This commit is contained in:
@@ -1,51 +1,48 @@
|
||||
<% if (!index && theme.leancloud && theme.leancloud.enable){ %>
|
||||
<!-- valine评论 -->
|
||||
<div id="vcomments-box">
|
||||
<div id="vcomments">
|
||||
</div>
|
||||
<div id="vcomments"></div>
|
||||
</div>
|
||||
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
|
||||
<script src='https://cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js'></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/valine@1.4.14/dist/Valine.min.js"></script>
|
||||
<script>
|
||||
new Valine({
|
||||
el: '#vcomments',
|
||||
app_id: '<%- theme.leancloud.app_id %>',
|
||||
app_key: '<%- theme.leancloud.app_key %>',
|
||||
path: window.location.pathname,
|
||||
notify: <%- theme.valine.notify %>,
|
||||
verify: <%- theme.valine.verify %>,
|
||||
avatar: '<%- theme.valine.avatar %>',
|
||||
placeholder: '<%- theme.valine.placeholder %>',
|
||||
recordIP: true
|
||||
new Valine({
|
||||
el: "#vcomments",
|
||||
app_id: "<%- theme.leancloud.app_id %>",
|
||||
app_key: "<%- theme.leancloud.app_key %>",
|
||||
path: window.location.pathname,
|
||||
avatar: "<%- theme.valine.avatar %>",
|
||||
placeholder: "<%- theme.valine.placeholder %>",
|
||||
recordIP: true,
|
||||
});
|
||||
const infoEle = document.querySelector("#vcomments .info");
|
||||
if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
|
||||
infoEle.childNodes.forEach(function (item) {
|
||||
item.parentNode.removeChild(item);
|
||||
});
|
||||
const infoEle = document.querySelector('#vcomments .info');
|
||||
if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
|
||||
infoEle.childNodes.forEach(function (item) {
|
||||
item.parentNode.removeChild(item);
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
#vcomments-box {
|
||||
padding: 5px 30px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
#vcomments-box {
|
||||
padding: 5px 30px;
|
||||
padding: 5px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
#vcomments-box {
|
||||
padding: 5px 0px;
|
||||
}
|
||||
}
|
||||
#vcomments-box #vcomments {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
#vcomments-box #vcomments {
|
||||
background-color: #fff;
|
||||
}
|
||||
.v .vlist .vcard .vh {
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.v .vlist .vcard .vh {
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.v .vlist .vcard {
|
||||
padding-left: 10px;
|
||||
}
|
||||
.v .vlist .vcard {
|
||||
padding-left: 10px;
|
||||
}
|
||||
</style>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
Reference in New Issue
Block a user