1.0.3 • Published 4 years ago

gridsome-plugin-disqus v1.0.3

Weekly downloads
28
License
ISC
Repository
github
Last release
4 years ago

Disqus plugin for Gridsome

See vue-disqus for more options. And get your own Disqus shortname at their site.

Install

  • yarn add gridsome-plugin-disqus
  • npm install gridsome-plugin-disqus

Usage

Add the plugin to your gridsome.config.js file:

module.exports = {
  plugins: [
    {
      use: "@gridsome/gridsome-plugin-disqus"
    }
  ]
};

Add a comments snippet to your article or blog template. Make sure you put your own Disqus "shortname" in it:

<div class="post-comments">
  <vue-disqus
    shortname="DISQUSSHORTNAME"
    :identifier="$page.post.title"
  ></vue-disqus>
</div>