molivier / nest

Nest Pelican Template
https://www.molivier.com
GNU General Public License v2.0
123 stars 50 forks source link

Add of Disqus to the Nest theme for Pelican #16

Closed mohcinemadkour closed 7 years ago

mohcinemadkour commented 7 years ago

Hi everyone

I have an issue adding the disqus comment to my blog made bt the pelican theme nest, I have created a disqus application and I have obtained the DISQUS_SITENAME , DISQUS_PUBLIC_KEY and the DISQUS_SECRET_KEY. I added these information in the pelicanconf.py but I can not see the comment block in the end of my articles. I have used the nest them from Github. Any idea why? thanks.

molivier commented 7 years ago

Hi Mochine,

To enable Disqus comment system you must set DISQUS_SITENAME and SITEURL in publishconf.py and/or pelicanconfig.py (Reference).

For example in my pelicanconf.py:

AUTHOR = u'Matthieu OLIVIER'
SITENAME = u'molivier'
SITEURL = 'http://127.0.0.1:8000'

For example in my publishconf.py:

SITEURL = 'https://www.molivier.com'
DISQUS_SITENAME = 'molivier'

This only activate Disqus when publishing.

molivier commented 7 years ago

Mochine,

I updated README to clarify Disqus activation. Thank you for filling this issue.