Skip to content

Commit

Permalink
Comment area failed to load #20
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzh committed Jul 22, 2018
1 parent eda9c35 commit ec6a990
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/partials/comment.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ if .Site.Params.DuoShuoShortName }}
{{ if .Site.Params.DuoShuo.ShortName }}
<section class="comment">
<div class="ds-thread" data-thread-key="{{ .Permalink }}"
data-title="{{ .Title }}" data-url="{{ .Permalink }}"></div>
</section>
<script type="text/javascript">
var duoshuoQuery = {short_name:"{{ .Site.Params.DuoShuoShortName }}"};
var duoshuoQuery = {short_name:"{{ .Site.Params.DuoShuo.ShortName }}"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
Expand All @@ -16,7 +16,7 @@
</script>
{{ end }}

{{ if .Site.Params.DisqusShortName }}
{{ if .Site.Params.Disqus.ShortName }}
<section class="comment">
<div id="disqus_thread"></div>
</section>
Expand All @@ -32,7 +32,7 @@
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');

s.src = '//{{ .Site.Params.DisqusShortName }}.disqus.com/embed.js';
s.src = '//{{ .Site.Params.Disqus.ShortName }}.disqus.com/embed.js';

s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
Expand Down

0 comments on commit ec6a990

Please sign in to comment.