gjtorikian / jekyll-last-modified-at

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

How to change the default date-format? Option not working via _config.yml #83

Open 888ba8 opened 3 years ago

888ba8 commented 3 years ago

I am on jekyll 3.4.0

If I include the following in my _config.yml

last-modified-at: date-format: '%d-%d-%d'

There is no update when I choose {% last_modified_at %} in my page layout. Why? It still shows as %d-%b-%y anyhow? How to fix this please?

VerzatileDev commented 7 months ago

Are you sure you are not accidently modifying it at the place you are deploying it by using this {{ page.last_modified_at | date: '%d-%b-%y' }}. For an example as considering, This last-modified-at: date-format: '%d-%d-%d' In the _config.yml is for the default if non is specified.