duilio / pelican-octopress-theme

Octopress default theme copied for pelican
MIT License
149 stars 119 forks source link

DISQUS integration. #56

Closed bugcy013 closed 8 years ago

bugcy013 commented 10 years ago

Hi Guys,

How to integrate DISQUS comment plugin with pelican-octopress-theme. I added DISQUS_SITENAME = "XXX" It's showing comment section. please guide me How to fix this.

Note: I tested other themes it's DISQUS working. only issue with pelican-octopress-theme

dhermes commented 9 years ago

@bugcy013 See https://github.com/duilio/pelican-octopress-theme/blob/7792e32f999a6e241d659b266d9fd54f4a3dd028/templates/article.html#L13

  {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}

You need to define both DISQUS_SITENAME and your SITEURL. (FWIW I found this via git grep -i disqus inside the repo.)

@duilio You should close this out as a "working as intended" or maybe add something to the README explaining this little quirk (it also caught me up).