|
|
@ -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 %} |
|
|
|