Skip to content

jblesage/liquid-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Liquid-Number

A Jekyll/Liquid plugin that formats numbers

Installation and Usage

To use this plugin with Jekyll, copy pluralize.rb to your _plugins folder.

The only function available is number. It can be used in two ways:

  • to use a standard number separator: raw_number = 2345

    {{ raw_number | number }}

    will output 2,345

  • to use a custom number separator: raw_number = 2345

    {{ raw_number | number: " " }}

    will output 2 345

Bugs

This was written quickly and for a very specific purpose. Therefore, it currently does not support numbers with decimals, only whole numbers.

Contact

E-mail Jean-Benoit Lesage with questions or comments.

This project is hosted on GitHub. Please feel free to submit issues and pull requests.

License

This script is hereby released into the public domain. To the extent possible, the author places no restrictions upon its use, modification, or redistribution.

About

A Liquid plugin that formats numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages