Add disqus comment system in Jekyll

The following steps are to add disqus comment system in all posts. It requires global setting in the _config.yml file. In comparison, the official disqus tutorial adds front matter to each post to indicate whether comments are shown or not.

  1. Add following codes to the _config.yml file:

    1
    2
    3
    4
    # Disqus settings
    disqus_username: DISQUSNAME
    layout: default
    comments: true
  2. Click the Universal Embeded Code text in the Jekyll install instructions page in disqus website.

  3. Copy codes in the first step on the page.

  4. Open and edit post.html below the _layouts folder.
  5. Find the place where you will put comments.
  6. Paste codes from Step 3.

Related posts: