-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You need to add some YAML front matter for the updated timestamp. This works on post's which automatically have a date based off of the filename you give it or if you add something like this to your front matter: ---
date: 2021-07-07
--- To get the updated value you need to add ---
last_modified_at: 2021-07-07
--- Many of the core Jekyll plugins utilize |
Beta Was this translation helpful? Give feedback.
You need to add some YAML front matter for the updated timestamp. This works on post's which automatically have a date based off of the filename you give it or if you add something like this to your front matter:
To get the updated value you need to add
last_modified_at
to front matter:Many of the core Jekyll plugins utilize
last_modified_at
timestamps which is why I choose that variable name. There is a Jekyll plugin that automatically adds that value based off of the last time the file was modified if you don't want to manually atlast_modified_at
datetimes to your posts and pages.