chore: bump dev dependencies (#1955)

* chore: bump devdeps

* upd infima url
This commit is contained in:
Endi 2019-11-11 17:44:26 +07:00 committed by GitHub
parent 72792a1e5c
commit 3be2e86546
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 505 additions and 497 deletions

View file

@ -375,9 +375,7 @@ function generateMetadataBlog(config = siteConfig) {
// Extract, YYYY, MM, DD from the file name
const filePathDateArr = path.basename(file).split('-');
metadata.date = new Date(
`${filePathDateArr[0]}-${filePathDateArr[1]}-${
filePathDateArr[2]
}T06:00:00.000Z`,
`${filePathDateArr[0]}-${filePathDateArr[1]}-${filePathDateArr[2]}T06:00:00.000Z`,
);
// allow easier sorting of blog by providing seconds since epoch
metadata.seconds = Math.round(metadata.date.getTime() / 1000);