Sha256: 964a274bf58eaee9f81d8f2d9b9038aa1054642e7aa0496d9fbecad460b323e1

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

# jekyll-roman

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

[![Gem Version](https://img.shields.io/gem/v/jekyll-roman.svg)](https://rubygems.org/gems/jekyll-roman)

## Installation

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

```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:

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

## Testing

1. `script/bootstrap`
2. `script/cibuild`

## 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](http://stackoverflow.com/questions/26092510/roman-numerals-in-ruby). If you know of a better way of achieving the same result, please let me know!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-roman-0.0.1 README.md