fix(v2): fix reading front matter keywords and image fields (#2165)

This commit is contained in:
Yangshun Tay 2019-12-31 21:42:47 +08:00 committed by GitHub
parent ca30adc19d
commit 428e087eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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,
}, },

View file

@ -2,7 +2,7 @@
id: search id: search
title: Search title: Search
keywords: keywords:
- docusaurus - algolia
- search - search
--- ---