'Installing disqus comment on a jekyll blog
I have followed the instruction on the disqus page on how to install disqus comment but, when it does not load up when I deploy my blog site I put the disqus universal code into the includes folder and then added it in the post.html file. I changed the following code in the universal disqus code :
var disqus_config = function () {
this.page.url = {{ site.url }}{{ page.url }}; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = {{ page.url }}; // Replace PAGE_IDENTIFIER with your page's unique identifier variable };
In the post.html file I have:
{% include comments.html %}
Is there something else I am missing?
Solution 1:[1]
var disqus_config = function () {
this.page.url = "{{ site.url }}{{ page.url }}"; // Replace PAGE_URL with your
page's canonical URL variable
this.page.identifier = "{{ page.url }}"; // Replace PAGE_IDENTIFIER with your
page's unique identifier variable };
I had to put the this.page.ulr into strings. as you can from the code above
Same for the this.page.identifier
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Andrews |
