Skip to content

Enable Comments

Derek Greer edited this page Feb 3, 2018 · 1 revision

Comments

The Los Techies site is designed to work with Disqus. To enable disqus for a given author, modify the _config.yml file in the root of the site to include a disqus section with variables for active and short_name.

The following example shows a disqus entry for the author "John Doe" where the Disqus shortname is "johndoe-lostechies" :

  johndoe:
    active: true
    author: "John Doe"
    output: true
    permalink: /:collection/:year/:month/:day/:title/
    disqus:
      short_name: "johndoe-lostechies"
      active: true

The active variable is used to enable or disable the inclusion of Disqus comments for all posts for a specific author.

Migration

To facilitate inclusion of Disqus comments for posts migrated from Wordpress, the Disqus javascript looks for the following variables within the post front matter:

  • wordpress_id
  • wordpress_guid

These variables should already exist for migrated posts and are not required for new posts.

Clone this wiki locally