Skip to content

Commit

Permalink
fix #30 and support Pug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben02 committed Dec 26, 2017
1 parent 91ba456 commit 1e0e191
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 17 additions & 16 deletions layout/partial/comments.jade → layout/partial/comments.pug
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,20 @@ if theme.youyan

})();

if theme.valine.enable == true
a#comments
#vcomments(style="margin:0 30px;")
script(src='//cdn1.lncld.net/static/js/3.0.4/av-min.js')
script(src='//cdn.jsdelivr.net/gh/xcss/[email protected]/dist/Valine.min.js' + '?v=' + theme.version)
script.
var valine = new Valine({
el:'#vcomments',
notify:#{theme.valine.notify} || false,
verify:#{theme.valine.verify}|| false,
app_id:'#{theme.valine.appid}',
app_key:'#{theme.valine.appkey}',
placeholder:'#{theme.valine.placeholder}',
path: window.location.pathname,
avatar:'#{theme.valine.avatar}'
})
if theme.valine
if theme.valine.enable == true
a#comments
#vcomments(style="margin:0 30px;")
script(src='//cdn1.lncld.net/static/js/3.0.4/av-min.js')
script(src='//cdn.jsdelivr.net/gh/xcss/[email protected]/dist/Valine.min.js' + '?v=' + theme.version)
script.
var valine = new Valine({
el:'#vcomments',
notify:#{theme.valine.notify} || false,
verify:#{theme.valine.verify}|| false,
app_id:'#{theme.valine.appid}',
app_key:'#{theme.valine.appkey}',
placeholder:'#{theme.valine.placeholder}',
path: window.location.pathname,
avatar:'#{theme.valine.avatar}'
})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions layout/post.jade → layout/post.pug
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include mixins

extends partial/layout

include mixins

block site_title
!= page.title + " · " + config.title

Expand Down
File renamed without changes.

0 comments on commit 1e0e191

Please sign in to comment.