Add hide_title metadata that hides the title text on the top of the doc (#540)

This commit is contained in:
Jason Gauci 2018-04-11 17:56:56 -07:00 committed by Joel Marcey
parent ad5b8b92b4
commit 6dd6ead19f
4 changed files with 3842 additions and 16 deletions

View file

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