Read git log and overwrite the front-matter properties `date` and `updated` for each posts
npm install hexo-filter-date-from-gitdate and updated for each posts.
date or updated in the front-matter.
shell
$ npm install hexo-filter-date-from-git --save
`
Usage
The date property will be the date when the first time someone committed the post. Same result as:
`shell
git log --format="%ad" -- | tail -1
`
The updated property will be the date when the last time someone committed the post. Same result as:
`shell
git log --format="%ad" -- | tail -1
`
NOTICE: If you created a new file, before you committed the file, the date and updated` will be the date when you run hexo command.