Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorgecasar/json-datefilter-jekyll
A Liquid tag filter for Jekyll to filter array by date using chronic syntax.
https://github.com/jorgecasar/json-datefilter-jekyll
Last synced: 1 day ago
JSON representation
A Liquid tag filter for Jekyll to filter array by date using chronic syntax.
- Host: GitHub
- URL: https://github.com/jorgecasar/json-datefilter-jekyll
- Owner: jorgecasar
- Created: 2014-02-06T16:21:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-15T11:41:30.000Z (over 10 years ago)
- Last Synced: 2024-10-23T21:32:47.677Z (16 days ago)
- Language: Ruby
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JSON dateFilter jekyll
======================A Liquid tag filter for Jekyll to filter array by date using chronic syntax. It's very usefull to filter posts, pages or data from JSON to get only the items of last month, before today or whatever.
# Usage
```{% json_filter result from source where attribute operator condition %}```
# Example```{% json_filter old_post from posts where date >= 1 year ago %}```
This is a real example: http://jorgecasar.github.io/talks/ And you can show the source code here: https://github.com/jorgecasar/jorgecasar.github.io/blob/source/source/talks/index.html
# Dependencies
- [chronic](https://github.com/mojombo/chronic)