From e186ee3650874af667cb6f9cc1bc88281a399150 Mon Sep 17 00:00:00 2001 From: Robert Riemann Date: Fri, 3 Jun 2016 10:57:52 +0200 Subject: [PATCH] take into account an optional basepath --- _includes/comments-providers/discourse.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_includes/comments-providers/discourse.html b/_includes/comments-providers/discourse.html index 1dbcaced..de2d2d58 100644 --- a/_includes/comments-providers/discourse.html +++ b/_includes/comments-providers/discourse.html @@ -1,5 +1,6 @@ {% if site.comments.discourse.server %} -{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} +{% include base_path %} +{% capture canonical %}{{ base_path }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}