0%

Enabling Disqus Comment System on Hexo NexT

What is Disqus?

Disqus is a networked community platform used by hundreds of thousands of sites all over the web. With Disqus, your website gains a feature-rich comment system complete with social network integration, advanced administration and moderation options, and other extensive community functions. Most importantly, by utilizing Disqus, you are instantly plugging into our web-wide community network, connecting millions of global users to your small blog or large media hub.

Create Disqus Account

Create your Disqus account on Disqus. After the account is created, follow the instructions to create shortname for your site, which is needed for Hexo.

You can also check your settings for your site on the settings page:

1
https://YOUR_SHORTNAME.disqus.com/admin/settings/general

Update Hexo Config File

Fortunately, NexT theme supports Disqus. In my case, since I have my theme settings in the top level _config.yaml, all I have to do is to open the _config.yaml file and add the following lines within the theme_config section:

_config.yml
1
2
3
4
5
disqus:
enable: true
shortname: jocodoma-github-page
count: true
lazyload: false

whereas jocodoma-github-page is my shortname.

That’s all. You should have a comment system in your blog now! Yay!

References