Skip to content

Commit

Permalink
fix(v2): move header inside article tag in doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Nov 12, 2019
1 parent ffa6b71 commit 5866d81
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/docusaurus-theme-classic/src/theme/DocItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ function DocItem(props) {
<div className="row">
<div className="col">
<div className={styles.docItemContainer}>
{!metadata.hide_title && (
<header>
<h1 className={styles.docTitle}>{metadata.title}</h1>
</header>
)}
<article>
{!metadata.hide_title && (
<header>
<h1 className={styles.docTitle}>{metadata.title}</h1>
</header>
)}

<div className="markdown">
<DocContent />
</div>
Expand Down

0 comments on commit 5866d81

Please sign in to comment.