How to show the modification date of a file in Jekyll?

date, jekyll, liquid

Solution

This is a relatively new plugin that does what you're looking for:

https://github.com/gjtorikian/jekyll-last-modified-at

(found it while searching Google for alternatives to the other answers in this thread)

Problem

I know that I can specify a variable `date` in the YAML frontmatter of a file and access its value with `{{ page.date }}`. This is cumbersome since one easily forgets to change the date when a file is updated. So how can I access a file's modification date?

Original source

Related problems