take into account an optional basepath
This commit is contained in:
parent
f6f7d0cd97
commit
e186ee3650
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{% if site.comments.discourse.server %}
|
{% 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">
|
<script type="text/javascript">
|
||||||
DiscourseEmbed = { discourseUrl: '//{{ site.comments.discourse.server }}/',
|
DiscourseEmbed = { discourseUrl: '//{{ site.comments.discourse.server }}/',
|
||||||
discourseEmbedUrl: '{{ canonical }}' };
|
discourseEmbedUrl: '{{ canonical }}' };
|
||||||
|
|
Loading…
Add table
Reference in a new issue