diff --git a/_config.yml b/_config.yml
index d3932ea6431b..01346491b025 100644
--- a/_config.yml
+++ b/_config.yml
@@ -18,9 +18,11 @@ teaser : # filename of teaser fallback teaser image placed in
# breadcrumbs : false # true, false (default)
words_per_minute : 200
comments:
- provider : # false (default), "disqus", "facebook", "google-plus", custom"
+ provider : # false (default), "disqus", "discourse", "facebook", "google-plus", custom"
disqus:
shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
+ discourse:
+ server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
facebook:
# https://developers.facebook.com/docs/plugins/comments
appid :
diff --git a/_includes/comments-providers/discourse.html b/_includes/comments-providers/discourse.html
new file mode 100644
index 000000000000..de2d2d583ea4
--- /dev/null
+++ b/_includes/comments-providers/discourse.html
@@ -0,0 +1,14 @@
+{% if site.comments.discourse.server %}
+{% include base_path %}
+{% capture canonical %}{{ base_path }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
+
+
+{% endif %}
diff --git a/_includes/comments-providers/scripts.html b/_includes/comments-providers/scripts.html
index df699fc5507f..0da90c5d56a2 100644
--- a/_includes/comments-providers/scripts.html
+++ b/_includes/comments-providers/scripts.html
@@ -3,6 +3,8 @@
{% case site.comments.provider %}
{% when "disqus" %}
{% include /comments-providers/disqus.html %}
+{% when "discourse" %}
+ {% include /comments-providers/discourse.html %}
{% when "facebook" %}
{% include /comments-providers/facebook.html %}
{% when "google-plus" %}