@rknightuk/eleventy-plugin-post-graph
v1.0.8
Published
Generate Github-style post distribution graph for your blog posts in Eleventy
Downloads
256
Maintainers
Readme
eleventy-plugin-post-graph
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 %}