summaryrefslogtreecommitdiffstats
path: root/layouts/partials/comment-disqus.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/comment-disqus.html')
-rw-r--r--layouts/partials/comment-disqus.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/comment-disqus.html b/layouts/partials/comment-disqus.html
index 539f8c7..75b3f4c 100644
--- a/layouts/partials/comment-disqus.html
+++ b/layouts/partials/comment-disqus.html
@@ -3,13 +3,13 @@
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
- this.page.url = "{{ $.Permalink }}";
- this.page.identifier = "{{ $.RelPermalink }}";
+ this.page.url = {{ $.Permalink }};
+ this.page.identifier = {{ $.File.ContentBaseName }};
};
(function () {
var d = document,
s = d.createElement('script');
- s.src = 'https://{{ . }}.disqus.com/embed.js';
+ s.src = 'https://' + {{ . }} + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();