Instantly add Disqus Comments to your posts or pages using this package designed to work perfectly with Nuxt 3.
Nuxt Disqus provides a wrapper for vue3-disqus to be used with Nuxt 3
Features
- 🔆Easy to integrate
- ⚡️Instantly usable components
DisqusComments
and DisqusCount
Quick Setup
-
Add nuxt-disqus
dependency to your project
npx nuxi@latest module add disqus
-
Add nuxt-disqus
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: ["nuxt-disqus"],
disqus: {
shortname: "your-disqus-shortname",
},
});
-
Place DisqusComments
anywhere in your app to render Disqus Comment thread for particular identifier
<DisqusComments identifier="/blog/1" />
-
Place DisqusCount
anywhere in your app to render Disqus Comment Count for particular identifier
<DisqusCount identifier="/blog/1" />
Example Output for DisqusCount
will be:
99 Comments
That's it! You can now use Disqus in your Nuxt app ✨
Development
yarn install
yarn run dev:prepare
yarn run dev
yarn run dev:build
yarn run lint
yarn run test
yarn run test:watch
yarn run release