@rknightuk/eleventy-plugin-post-graph

1.0.7 • Public • Published

eleventy-plugin-post-graph

npm

Generate Github-style post distribution graph for your blog posts in Eleventy

Basic Usage

Install the package

npm install @rknightuk/eleventy-plugin-post-graph --save-dev

In your Eleventy config:

const postGraph = require('@rknightuk/eleventy-plugin-post-graph')

module.exports = (eleventyConfig, options = {}) => {
    eleventyConfig.addPlugin(postGraph)
}

In your template, use the shortcode and pass it your posts collection:

{% postGraph collections.posts %}

Advanced Usage and Options

See the docs

Package Sidebar

Install

npm i @rknightuk/eleventy-plugin-post-graph

Weekly Downloads

142

Version

1.0.7

License

ISC

Unpacked Size

69.8 kB

Total Files

6

Last publish

Collaborators

  • rknightuk