Skip to content

Commit

Permalink
🐛 修复 disqus 加载错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyibo authored and zkqiang committed Aug 12, 2020
1 parent 552af5e commit b4e6de1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layout/_partial/comments/disqus.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
<div class="disqus" style="width:100%">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_config = function () {
this.page.url = '<%= page.permalink %>';
this.page.identifier = '<%= url_for(page.path) %>';
};
function loadDisqus() {
var disqus_config = function () {
this.page.url = '<%= config.url %>/<%= page.path %>';
this.page.identifier = '/<%= page.path %>';
};
(function () {
var d = document,
s = d.createElement('script');
Expand Down

0 comments on commit b4e6de1

Please sign in to comment.