搭建自己的技术博客系列3:让你的博客拥有评论功能!( 五 )


   var GUEST = ['nick''mail''link'
;
   var guest = '{{ theme.valine.guest_info ';
   guest = guest.split('').filter(function (item) {
     return GUEST.indexOf(item)>-1;
   );
   new Valine({
       el: '#comments'
       verify: {{ theme.valine.verify
       notify: {{ theme.valine.notify
       appId: '{{ theme.valine.appid '
       appKey: '{{ theme.valine.appkey '
       placeholder: '{{ theme.valine.placeholder '
       avatar:'{{ theme.valine.avatar '
       guest_info:['nick'
 //评论者只需要提供评论的昵称即可
       pageSize:'{{ theme.valine.pageSize ' || 10
   );
   //增加以下六行代码去除 power by valine
   var infoEle = document.querySelector('#comments .info');

推荐阅读