This plugin adds comment feature to a GatsbyJS website.
npm install gatsby-plugin-commentator
// or
yarn add gatsby-plugin-commentatorInclude it among the plugins in the gatsby-config.js file of a GatsbyJS website project folder.
module.exports = {
plugins: [
// ......
{
resolve: "gatsby-plugin-commentator",
{website: "http://url-of-the-webiste.come"}
}
]
}Lastly, make a DOM element available at any component rendered with id="commentContainer"
<!-- Single post listing page -->
<section id="commentContainer"></section>That's all!
To load fresh comments, the server has to be restarted.
Built with 💕💕💕 by Aleem Isiaka