0.0
No release in over 3 years
Low commit activity in last 3 years
A liquid filter for Jekyll that converts numbers into Roman numerals.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.1
>= 3.0, < 5.0
~> 13.0.1
~> 3.0
 Project Readme

jekyll-roman

A liquid filter for Jekyll that converts numbers into Roman numerals.

Gem version Build status

Installation

  1. Add gem 'jekyll-roman' to your site’s Gemfile and run bundle
  2. Add the following to your site’s _config.yml:
gems:
  - jekyll-roman

Usage

This filter takes any given whole number and converts it. Any other types of string are ignored. For example, if you wish to display the year in your site’s copyright statement as roman numerals, you would write the following:

<h1>&copy; {{ site.time | date:"%Y" | roman }}</h1>

Testing

  1. bundle install
  2. bundle exec rake spec

Contributing

  1. Fork the project
  2. Create a descriptively named feature branch
  3. Add your feature
  4. Submit a pull request

Acknowledgements

Code based on that found in this discussion on Stack Overflow. If you know of a better way of achieving the same result, please let me know!