Skip to content

Commit

Permalink
take into account an optional basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
rriemann committed Jun 3, 2016
1 parent f6f7d0c commit e186ee3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/comments-providers/discourse.html
Original file line number Diff line number Diff line change
@@ -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 %}
<script type="text/javascript">
DiscourseEmbed = { discourseUrl: '//{{ site.comments.discourse.server }}/',
discourseEmbedUrl: '{{ canonical }}' };
Expand Down

0 comments on commit e186ee3

Please sign in to comment.