~xdavidwu/xdavidwu.link

cf924a929c3efb4d24e901aa7ec030bc9943dd2f — Robert Riemann 8 years ago 323a2a2
take into account an optional basepath
1 files changed, 2 insertions(+), 1 deletions(-)

M _includes/comments-providers/discourse.html
M _includes/comments-providers/discourse.html => _includes/comments-providers/discourse.html +2 -1
@@ 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 }}' };