Skip to content

Commit

Permalink
fix(discuss.ejs): 修复discuss评论未设置path时产生的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lete114 committed Apr 22, 2022
1 parent 43f795a commit cb28b1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layout/_partial/third_party/comment/discuss.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
let initData = {
el: '#Discuss-Comments',
serverURLs: '<%- theme.discuss.serverURLs %>',
<% if(theme.discuss.path){ %>
path: <%- theme.discuss.path %>,
<% } %>
}
var options = <%- options %>;
if (options) initData = Object.assign(initData, options)
Expand Down

0 comments on commit cb28b1d

Please sign in to comment.