lumeland / lume

🔥 Static site generator for Deno 🦕
https://lume.land
MIT License
1.85k stars 85 forks source link

add date format HUMAN_SINCE #589

Closed UppaJung closed 6 months ago

UppaJung commented 6 months ago

add date format HUMAN_SINCE add date format HUMAN_SINCE_STRICT

Description

I'd like to be able to have lume display an article as having been written "three days ago" rather than "March 23, 2024", but the date package doesn't currently support relative dates. I've exposed functionality in the already-relied-upon date-fns package to add two new date formats:

Note: I have done everything on the check list below, but that check list does not tell me how I would update the plugin's documentation.

Related Issues

I proposed a fix without opening an issue.

Check List

oscarotero commented 6 months ago

Thank you!

The plugin documentation will be updated in https://github.com/lumeland/lume.land when the new version is released.