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 - Clicking a lookup-table die in the header row (e.g.
1d12) rolls and shows the matching row - Persists input history, result history, minimize status
https://github.com/user-attachments/assets/6ef8d788-a1ee-49d4-ab26-f63899bb4a10
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