aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/_includes/disqus.html
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-10-21 14:04:34 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-10-21 14:04:34 +0200
commit514e84831ca2d9bce27c2a209b67fce26b5c52e8 (patch)
treee485fbd022bfb72f3d9a2896f24f8680e92f5a14 /.themes/classic/source/_includes/disqus.html
parent2043c543d2b5d5e6d59ecf713db9d218e1c8ef8d (diff)
downloadmy_new_personal_website-514e84831ca2d9bce27c2a209b67fce26b5c52e8.tar.xz
my_new_personal_website-514e84831ca2d9bce27c2a209b67fce26b5c52e8.zip
Use canonical URL for Disqus, fixes #236
Diffstat (limited to '.themes/classic/source/_includes/disqus.html')
-rw-r--r--.themes/classic/source/_includes/disqus.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/.themes/classic/source/_includes/disqus.html b/.themes/classic/source/_includes/disqus.html
index a58512b5..b4ee5c64 100644
--- a/.themes/classic/source/_includes/disqus.html
+++ b/.themes/classic/source/_includes/disqus.html
@@ -1,13 +1,12 @@
{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %}
{% if site.disqus_short_name and page.comments != false %}
<script type="text/javascript">
-
var disqus_shortname = '{{ site.disqus_short_name }}';
{% if page.comments == true %}
{% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %}
// var disqus_developer = 1;
- var disqus_identifier = '{{ site.url }}{{ page.url }}';
- var disqus_url = '{{ site.url }}{{ page.url }}';
+ var disqus_identifier = '{{ canonical }}';
+ var disqus_url = '{{ canonical }}';
var disqus_script = 'embed.js';
{% else %}
{% comment %} As `page.comments` is empty, we must be on the index page. {% endcomment %}