mirror of
https://github.com/oen/liquid-template.git
synced 2026-07-22 05:40:24 +00:00
test a different readme format
This commit is contained in:
parent
f34e590e72
commit
32d688c698
1 changed files with 1 additions and 11 deletions
12
README.md
12
README.md
|
|
@ -72,35 +72,25 @@ The new `date` filter uses [date-fns](https://date-fns.org/) as library to handl
|
|||
There are also some special words that can be used with this filter:
|
||||
|
||||
**"now"**
|
||||
|
||||
`{{ "now" | date: "yyyy-MM-dd" }}`
|
||||
|
||||
Use the date from `new Date` and formatted with the given format
|
||||
|
||||
---
|
||||
|
||||
**"today"**
|
||||
|
||||
`{{ "today" | date: "yyyy-MM-dd" }}`
|
||||
|
||||
same as `now`
|
||||
|
||||
---
|
||||
|
||||
**"yesterday"**
|
||||
|
||||
`{{ "yesterday" | date: "yyyy-MM-dd" }}`
|
||||
|
||||
use the [`subDays`](https://date-fns.org/v2.21.3/docs/subDays) function to subtract `1` from `Date.now()` and formatted with the given format
|
||||
|
||||
---
|
||||
|
||||
**"tomorrow"**
|
||||
|
||||
`{{ "tomorrow" | date: "yyyy-MM-dd" }}`
|
||||
|
||||
use the [`addDays`](https://date-fns.org/v2.21.3/docs/addDays) function to add `1` to `Date.now()` and formatted with the given format
|
||||
|
||||
|
||||
### `date` Default format
|
||||
|
||||
Now you can use the "Date Format" you defined inside the plugin settings in a easier way:
|
||||
|
|
|
|||
Loading…
Reference in a new issue