mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
chore: bump dev dependencies (#1955)
* chore: bump devdeps * upd infima url
This commit is contained in:
parent
72792a1e5c
commit
3be2e86546
18 changed files with 505 additions and 497 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue