mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 04:12:53 +02:00
feat(v1): allow specifying meta desc in front matter (#1859)
* feat(v1): allow specifying meta desc in front matter * misc(v2): sync with v1
This commit is contained in:
parent
2c1012b9ec
commit
a690d34af0
5 changed files with 9 additions and 9 deletions
|
@ -88,7 +88,7 @@ class DocsLayout extends React.Component {
|
|||
separateOnPageNav: hasOnPageNav,
|
||||
})}
|
||||
title={title}
|
||||
description={content.trim().split('\n')[0]}
|
||||
description={metadata.description || content.trim().split('\n')[0]}
|
||||
language={metadata.language}
|
||||
version={metadata.version}
|
||||
metadata={metadata}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue