Skip to content

Commit e186ee3

Browse files
committed
take into account an optional basepath
1 parent f6f7d0c commit e186ee3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: _includes/comments-providers/discourse.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% 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 %}
2+
{% 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 %}
34
<script type="text/javascript">
45
DiscourseEmbed = { discourseUrl: '//{{ site.comments.discourse.server }}/',
56
discourseEmbedUrl: '{{ canonical }}' };

0 commit comments

Comments
 (0)