Fehérke's GitHub Site == glue between Fehérke's GitHub hosted projects

Relative

Have you checked how Wikipedia produces output like “1995; 18 years ago” in the infoboxes ? They have a template for that : {{start date and age|1995}}.

Well, I like such relative dates. I find them more human readable than absolute dates.

Usage

relative is a Liquid filter, so you just pass a date to it :

sample code – Liquid template

Page last modified {{ page.date }} ( {{ page.date | relative }} ).

Configuration

None.

Versions

Plans

Download

You can find the related files on GitHub in my Jekyll-plugin repository’s relative directory :