johnwargo / eleventy-new-post

Automates creation of a new post file in an Eleventy project
https://www.npmjs.com/package/eleventy-new-post
MIT License
5 stars 0 forks source link

Time Support in Date Property #2

Closed flamedfury closed 7 months ago

flamedfury commented 7 months ago

What problem are you trying to solve with this feature? Time support alongside date during post creation

Is your feature request related to a problem? Please describe. Posts that are missing timestamps when rendered in an RSS/feed all end up being posted at 00:00. The feed also complains if there are more than one post per day because of this.

Describe the solution you'd like I would love to have the time that the post was created to the date key, e.g. date: 2024-04-05T20:07:30Z

Describe alternatives you've considered Manually adding in the timestamp once the post has been created.

johnwargo commented 7 months ago

@flamedfury Eleventy ignores the timestamp portion of the date property. In order to support timestamps, the utility would need to add an additional property to the front matter, I assume called timestamp, and put the full time there.

Thanks for the suggestion, it would be really easy to add.

johnwargo commented 7 months ago

@flamedfury check it out