We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6f7d0c commit e186ee3Copy full SHA for e186ee3
_includes/comments-providers/discourse.html
@@ -1,5 +1,6 @@
1
{% if site.comments.discourse.server %}
2
-{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
+{% include base_path %}
3
+{% capture canonical %}{{ base_path }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
4
<script type="text/javascript">
5
DiscourseEmbed = { discourseUrl: '//{{ site.comments.discourse.server }}/',
6
discourseEmbedUrl: '{{ canonical }}' };
0 commit comments