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+1and turns them into clickable links that roll in the tray - Recognizes THAC0-style bracket modifiers like
THAC0 18 [+1]or18 [+1]in a THAC0 table row/column; the+1inside the brackets is clickable and rollsd20+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