Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gatsby-plugin-jam-comments

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-jam-comments

The Gatsby plugin for Jam Comments.

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

:warning: JamComments is still in active development, and has not yet been opened to the public. To be notified when it's available, sign up here: jamcomments.com.

gatsby-plugin-jam-comments

The official Gatsby plugin for integrating JamComments into your Gatsby application.

Setup

  • Create a JamComments account.
  • Create a site and generate an API key.
  • Install this plugin: npm install gatsby-plugin-jam-comments.
  • Configure the plugin by adding the following to your gatsby-node.js:
resolve: 'gatsby-plugin-jam-comments',
  options: {
    api_key: "YOUR-API-KEY",
    domain: "your-domain.me"
  }
},

Usage

Embedding Comments

To include a comment form and existing comments on your blog posts, you'll need to place the <JamComments /> component on your page component(s), along with the required path and pageContext props:

import React from "react";
import JamComments from "gatsby-plugin-jam-comments";

const MyPost = (props) => {
  return (
    <article>
      <h1>{props.title}</h1>
      <div>{props.content}</div>
      <JamComments path={props.path} pageContext={props.pageContext} />
    </article>
  );
};
  
export default MyPost;

Querying for Data

{
  allJamComment(limit: 10) {
    edges {
      node {
        content
        name
        path
        id
      }
    }
  }
}

Keywords

gatsby

FAQs

Package last updated on 09 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts