diff options
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/components/Summary.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Summary.js b/packages/gitbook-plugin-theme-default/src/components/Summary.js index e95b4b4..8c5c4a1 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Summary.js +++ b/packages/gitbook-plugin-theme-default/src/components/Summary.js @@ -46,10 +46,12 @@ const SummaryPart = React.createClass({ const { part } = this.props; const { title, articles } = part; + const titleEL = title ? <h2>{title}</h2> : null; + return ( <GitBook.InjectedComponent matching={{ role: 'summary:part' }} props={this.props}> <div className="SummaryPart"> - {title} + {titleEL} <SummaryArticles articles={articles} /> </div> </GitBook.InjectedComponent> |