More Premium Hugo Themes Premium Jekyll Themes

Jekyll Humanize

This is a port of the Django app `humanize` which adds a "human touch" to data.

Jekyll Humanize

This is a port of the Django app `humanize` which adds a "human touch" to data.

Author Avatar Theme by 23maverick23
Github Stars Github Stars: 38
Last Commit Last Commit: Oct 9, 2014 -
First Commit Created: Jun 19, 2023 -
Jekyll Humanize screenshot

Overview

The jekyll-humanize plugin brings a user-friendly touch to data representation in Jekyll sites, borrowing inspiration from the Django app humanize. This valuable tool enhances the static site generation process by making data display more relatable and engaging, particularly for numbers and dates. It’s easy to install and integrates seamlessly into your Jekyll templates, providing a smooth way to improve the readability of your content.

With a straightforward installation process and a variety of methods to choose from, jekyll-humanize allows users to convert integers into ordinals, format file sizes, and even humanize dates. This can significantly elevate the user experience by ensuring that data presented on your site is both clear and accessible.

Features

  • Ordinal Conversion: Convert integers to their ordinal string equivalents, e.g., 1 becomes ‘1st’, with optional HTML tags for display formatting.

  • IntComma Formatting: Easily format large integers with commas separating thousands, enhancing readability, e.g., 3000 appears as ‘3,000’.

  • Friendly IntWord Representation: Transform large numbers into intuitive text representations, such as ‘1.0 million’ for values over one million.

  • AP Number Styling: Spell out numbers 0-9 while returning numerical representations for larger numbers, adhering to Associated Press style guidelines.

  • Natural Day Representation: Simplify date displays for upcoming or recent days using terms like ’today’, ’tomorrow’, or ‘in # days’, making it relatable to users.

  • Filesize Formatting: Convert byte values into easily readable filesize formats rounded to three decimal places with the appropriate suffix, such as KB or MB.

This combination of features makes jekyll-humanize a practical tool for enriching Jekyll sites and enhancing data communication with user-friendly formatting options.