Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add date format HUMAN_SINCE #589

Merged
merged 1 commit into from
Mar 26, 2024
Merged

add date format HUMAN_SINCE #589

merged 1 commit into from
Mar 26, 2024

Conversation

UppaJung
Copy link
Contributor

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

  • Have you read the
    CODE OF CONDUCT
  • Have you read the document
    CONTRIBUTING
    • One pull request per feature. If you want to do more than one thing,
      send multiple pull request.
    • Write tests.
    • Run deno fmt to fix the code format before commit.
    • Document any change in the CHANGELOG.md.

add date format HUMAN_SINCE_STRICT
@oscarotero
Copy link
Member

Thank you!

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

@oscarotero oscarotero merged commit 9cb4606 into lumeland:main Mar 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants