GithubHelp home page GithubHelp logo

paulrobertlloyd / jekyll-roman Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 17 KB

A liquid filter for Jekyll that converts numbers into Roman numerals

Home Page: https://rubygems.org/gems/jekyll-roman

License: MIT License

Ruby 100.00%
jekyll-plugin

jekyll-roman's Introduction

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!

jekyll-roman's People

Contributors

dependabot[bot] avatar paulrobertlloyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ninon1635

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.