Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

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

Open
888ba8 opened this issue Dec 22, 2020 · 1 comment
Open

Comments

@888ba8
Copy link

888ba8 commented Dec 22, 2020

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
Copy link

VerzatileDev commented Dec 20, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants