mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 17:47:40 +02:00
Add hide_title metadata that hides the title text on the top of the doc (#540)
This commit is contained in:
parent
ad5b8b92b4
commit
6dd6ead19f
4 changed files with 3842 additions and 16 deletions
|
@ -60,11 +60,12 @@ class Doc extends React.Component {
|
|||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="post">
|
||||
<header className="postHeader">
|
||||
{editLink}
|
||||
<h1>{this.props.title}</h1>
|
||||
{!this.props.hideTitle && <h1>{this.props.title}</h1>}
|
||||
</header>
|
||||
<article>
|
||||
<MarkdownBlock>{this.props.content}</MarkdownBlock>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue