Skip to content

rknightuk/eleventy-plugin-post-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks