The project is in a healthy, maintained state
Jekyll plugin that adds an overlay dice tray and clickable dice rolls.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 3.7, < 5.0
>= 1.14
 Project Readme

jekyll-dice-tray

A Jekyll plugin gem that:

  • Adds an overlay dice tray that accepts dice rolling input
  • Recognizes dice expressions in rendered pages like d4, 1d6, 1d20+1 and turns them into clickable links that roll in the tray
  • Recognizes THAC0-style bracket modifiers like THAC0 18 [+1] or 18 [+1] in a THAC0 table row/column; the +1 inside the brackets is clickable and rolls d20+1 (other [+n] text is left alone)
  • Persists input history, result history, minimize status
  • /help - help
  • /clear - clears results and input history

Install

Add to your site Gemfile:

gem "jekyll-dice-tray"

Then in _config.yml:

plugins:
  - jekyll-dice-tray

Configuration

Optional _config.yml settings:

dice_tray:
  enabled: true
  assets_path: /assets/jekyll-dice-tray
  inject_tray: true
  link_dice_in_markdown: true