Skip to content

Commit

Permalink
Shows the correct Disqus comment count for the posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ecampidoglio committed Sep 7, 2017
1 parent f6ad28b commit f90c006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ <h1 class="title">{{ page.title }}</h1>

<div class="comments">
<i class="fa fa-comment"></i>
<a href="{{ site.url }}{{ page.url }}#disqus_thread"></a>
<a href="{{ site.url }}{{ page.url }}#disqus_thread"
data-disqus-identifier="{{ page.url }}"></a>
</div>

<div id="related">
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ <h1 class="title">{{ post.title }}</h1>

<div class="comments">
<i class="fa fa-comment"></i>
<a href="{{ site.url }}{{ post.url }}#disqus_thread"></a>
<a href="{{ site.url }}{{ post.url }}#disqus_thread"
data-disqus-identifier="{{ post.url }}"></a>
</div>

{% if forloop.last == false %}
Expand Down

0 comments on commit f90c006

Please sign in to comment.