eleventy-plugin-jam-comments

0.0.4 • Public • Published

eleventy-plugin-jam-comments

The official plugin for integrating JamComments into your Eleventy site.

Prerequisites

In order to use this plugin, you'll need a JamComments account, where you'll also need to have created a site and generated an API key.

Installation

Run npm install eleventy-plugin-jam-comments.

Configuration

In your .eleventy.js file, require the plugin and initialize it with your site's domain and API key.

const jamComments = require('eleventy-plugin-jam-comments');

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(jamComments, {
    domain: process.env.JAM_COMMENTS_DOMAIN,
    apiKey: process.env.JAM_COMMENTS_API_KEY
  });
});

Displaying Comments

Embed the following Nunjucks shortcode in the template that renders individual posts or pages.

{% jamcomments %}

Supported Rendering Engines

  • *.njk
  • *.liquid

Package Sidebar

Install

npm i eleventy-plugin-jam-comments

Weekly Downloads

0

Version

0.0.4

License

GPL-2.0

Unpacked Size

44.3 kB

Total Files

20

Last publish

Collaborators

  • alexmacarthur