![Eleventy project logo](/images/headers/11ty.png)
Added Timestamp to My Eleventy New Post Utility
![Print Friendly and PDF](http://cdn.printfriendly.com/buttons/printfriendly-button-nobg.png)
Posted: Saturday, April 6, 2024 at 08:10 AM | Categories: Eleventy
A user of my Eleventy New Post utility submitted a feature request yesterday suggesting I add the post's timestamp to the generated post instead of just the date.
If you put a timestamp in a post's date
front matter property, Eleventy ignores it since it expects that property to just be the post date. To implement this feature, I added a configuration option that causes the utility to add a new property to the post called timeStamp
with the full date/time for the post creation.
I also updated this site to use the timeStamp when available. Enjoy!
Next Post: Added Timestamp to Posts
Previous Post: Building a documentation Site Using Docusaurus
If this content helps you in some way, please consider buying me a coffee.
Header image: Eleventy Project Home Page.