No commit activity in last 3 years
No release in over 3 years
Jekyll generator to sum frontmatter elements
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
< 3.2.0, >= 3.1.6
~> 10
~> 3.0
 Project Readme

Welcome to Jekyll Front Adder

Jekyll Front Adder is a module to add up the values of specified hashes from a post's front matter and add a running total back to the post's front matter.

Build Status GitHub version

Installation

Add this line to your site's Gemfile:

gem 'jekyll-frontadder'

And then add this line to your site's _config.yml:

gems:
  - jekyll-frontadder

Usage

Add an entry similar to the following to your _config.yml:

frontadder:
  - hours

This will configure frontadder to look for a hash structure called 'hours' on your site's posts, similar to the following:

hours:
  total: .5
  part:
    horizontal stabilizer: .5
  type:
    deburring: .5

When it finds this structure, it will add up all of the keys it finds. As each post is processed, a copy of the running totals will be left under ['hash']['runtotal'] for use on the page. After the plugin finishes, the site will have a hash entry with the totals for the entire site.