mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix(v2): fix reading front matter keywords and image fields (#2165)
This commit is contained in:
parent
ca30adc19d
commit
428e087eb7
2 changed files with 3 additions and 3 deletions
|
@ -58,15 +58,15 @@ function DocItem(props) {
|
||||||
description,
|
description,
|
||||||
title,
|
title,
|
||||||
permalink,
|
permalink,
|
||||||
image: metaImage,
|
|
||||||
editUrl,
|
editUrl,
|
||||||
lastUpdatedAt,
|
lastUpdatedAt,
|
||||||
lastUpdatedBy,
|
lastUpdatedBy,
|
||||||
keywords,
|
|
||||||
version,
|
version,
|
||||||
} = metadata;
|
} = metadata;
|
||||||
const {
|
const {
|
||||||
frontMatter: {
|
frontMatter: {
|
||||||
|
image: metaImage,
|
||||||
|
keywords,
|
||||||
hide_title: hideTitle,
|
hide_title: hideTitle,
|
||||||
hide_table_of_contents: hideTableOfContents,
|
hide_table_of_contents: hideTableOfContents,
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
id: search
|
id: search
|
||||||
title: Search
|
title: Search
|
||||||
keywords:
|
keywords:
|
||||||
- docusaurus
|
- algolia
|
||||||
- search
|
- search
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue