gjtorikian / jekyll-last-modified-at

A Jekyll plugin to show the last_modified_at time of a post.
MIT License
242 stars 38 forks source link

Compatibility issues with Jekyll 2.4? #29

Closed rhewitt22 closed 9 years ago

rhewitt22 commented 9 years ago

I just upgraded to Jekyll 2.4 yesterday, and I noticed that the "last modified" text at the bottom of each page is no longer updating when I save. For example, a page I just edited is still showing September 5, 2014 rather than September 18, 2014.

I editing my layout file to see if the plugin was still functioning: Original: {% last_modified_at %B %d, %Y %} Edited: {% last_modified_at %}

The output changed styles to Last Updated: 05-Sep-14, but the old date was still shown.

gjtorikian commented 9 years ago

Is your Jekyll project within a Git repository?

This plugin only changes the date when a file is committed in Git, not when it's simply changed. If you're not using a Git project, then it does indeed refer to the last modified time.

rhewitt22 commented 9 years ago

I had uncommitted changes, my mistake!