Final readme update

This commit is contained in:
Diomede 2021-05-26 19:04:03 +02:00 committed by GitHub
parent 32d688c698
commit bb6a78965f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,24 +71,24 @@ 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
**"now"**<br/>
`{{ "now" | date: "yyyy-MM-dd" }}`<br/>
Use the date from `new Date` and formatted with the given format<br/>
**"today"**
`{{ "today" | date: "yyyy-MM-dd" }}`
same as `now`
**"today"**<br/>
`{{ "today" | date: "yyyy-MM-dd" }}`<br/>
same as `now`<br/>
**"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
**"yesterday"**<br/>
`{{ "yesterday" | date: "yyyy-MM-dd" }}`<br/>
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<br/>
**"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
**"tomorrow"**<br/>
`{{ "tomorrow" | date: "yyyy-MM-dd" }}`<br/>
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<br/>
### `date` Default format
@ -145,4 +145,4 @@ For now, this plugin just includes the basic version of LiquidJS, but I want to
- [ ] Add autocomplete to the template folder, excluded folder settings
- [ ] Implement a fuzzy finder for the autocomplete
- [x] Implement/install a filter that allows you to write `{{ 1 | days_ago | date: default_date_format }}`
- [ ] Parse a selected template string, something like you select `{{ "dQw4w9WgXcQ" | youtube_iframe }}` run a command and end up with the parsed result, in this case, the youtube iframe. (the `youtube_iframe` tag does not exist yet)
- [ ] Parse a selected template string, something like you select `{{ "dQw4w9WgXcQ" | youtube_iframe }}` run a command and end up with the parsed result, in this case, the youtube iframe. (the `youtube_iframe` tag does not exist yet)