A liquid filter for Jekyll that converts numbers into Roman numerals.
gem 'jekyll-roman'
to your site’s Gemfile and run bundle
_config.yml
:gems:
- jekyll-roman
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>© {{ site.time | date:"%Y" | roman }}</h1>
bundle install
bundle exec rake spec
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!