Add Discourse for comments

This commit is contained in:
Paulus Schoutsen 2018-01-27 00:30:24 -08:00
parent a43ec05a4d
commit d300a9dc44
5 changed files with 27 additions and 3 deletions

View file

@ -9,7 +9,7 @@
<p class="meta">
{% include post/date.html %}{{ time }}
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread"
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#post-comments"
data-disqus-identifier="{% if post.meta.disqus_id %}{{ post.meta.disqus_id }}{% else %}{{ site.url }}{{ post.url }}{% endif %}">Comments</a>
{% endif %}
</p>

View file

@ -15,7 +15,7 @@
{% include blog/post/tags.html %}
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
<a class='comments'
href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread"
href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#post-comments"
>Comments</a>
{% endif %}
</div>

View file

@ -4,7 +4,11 @@
{% endcomment %}
{% include javascripts/google_analytics.html %}
{% if site.disqus_short_name and post.date < site.disqus_end_date and page.comments == true %}
{% include javascripts/disqus.html %}
{% endif %}
{% include javascripts/algolia.html %}
{% if page.sidebar != false %}