Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Nov 19, 2019
1 parent 64302d0 commit 31255ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/docusaurus-theme-classic/src/theme/DocItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Headings({headings, isChild}) {
function DocItem(props) {
const {siteConfig = {}} = useDocusaurusContext();
const {url: siteUrl} = siteConfig;
const {metadata, frontMatter, content: DocContent} = props;
const {metadata, content: DocContent} = props;
const {
description,
title,
Expand All @@ -63,7 +63,9 @@ function DocItem(props) {
lastUpdatedBy,
keywords,
} = metadata;
const {hide_title: hideTitle} = frontMatter;
const {
frontMatter: {hide_title: hideTitle},
} = DocContent;

const metaImageUrl = siteUrl + useBaseUrl(metaImage);

Expand Down

0 comments on commit 31255ff

Please sign in to comment.