Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 781 Bytes

readme.md

File metadata and controls

35 lines (22 loc) · 781 Bytes

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