maupassant 主题支持valine系统。至于valine怎么申请就不详说了。大致申请appid,appkey,设置中添加安全域名。
然后在主题的配置文件中开启即可。
然而打开后发现评论无法提交。经过研究,发现是一个链接网址有错误。更新就可。
comments.pug文件
if theme.valine.enable == true
#vcomment
script(src='//cdn1.lncld.net/static/js/3.0.4/av-min.js')
script(src='//cdn.jsdelivr.net/gh/xcss/valine@v1.1.7/dist/Valine.min.js')
script.
var notify = '#{ theme.valine.notify }' == true ? true : false;
var verify = '#{ theme.valine.verify }' == true ? true : false;
var GUEST_INFO = ['nick','mail','link'];
var guest_info = '#{ theme.valine.guest_info }'.split(',').filter(function(item){
return GUEST_INFO.indexOf(item) > -1
});
guest_info = guest_info.length == 0 ? GUEST_INFO :guest_info;
window.valine = new Valine({
el:'#vcomment',
notify:notify,
verify:verify,
appId:'#{theme.valine.appid}',
appKey:'#{theme.valine.appkey}',
placeholder:'#{theme.valine.placeholder}',
avatar:'#{theme.valine.avatar}',
guest_info:guest_info,
pageSize:'#{theme.valine.pageSize}'
})
maupassant主题valine无法提交问题解决方法
原创
©著作权归作者所有:来自51CTO博客作者wx59bdec579ef96的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:VM安装ubuntu18.04
下一篇:ubuntu-常用配置-开机启动
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
kubernetes无法删除namespaces命名空间的解决方法
通过etcd删除,亲测可行.[root@k8s-node1 dark]# kubectl get ns |grep TNAME STATUS AGEedison Terminating 6h27mwu
API kubernetes etcd namespaces k8s无法删除命名空间 -
PING问题解决方法_20190305
文 : 韦东山我们深受windows、ubuntu、开发板之间互PING问题的困扰,特别为这个问
互ping 嵌入式Linux 开发板 Windows IP -
QQ卡机问题解决方法
一、问题的提出 我
职场 QQ卡机 休闲