mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
fix(v2): parse frontMatter.date (#5232)
Signed-off-by: wener <wenermail@gmail.com>
This commit is contained in:
parent
b3e89d2a86
commit
bb0c9eed0d
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ export async function generateBlogPosts(
|
|||
|
||||
// Prefer user-defined date.
|
||||
if (frontMatter.date) {
|
||||
date = frontMatter.date;
|
||||
date = new Date(frontMatter.date);
|
||||
}
|
||||
|
||||
// Use file create time for blog.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue