fix(view): don't render title as <h1> on index pages

pull/1195/head 5.2.0
ppoffice 2023-02-17 21:31:10 -05:00
parent 41d9716e0d
commit 2a57ea428d
No known key found for this signature in database
GPG Key ID: D872802C1F2A16AA
1 changed files with 2 additions and 3 deletions

View File

@ -84,9 +84,8 @@ module.exports = class extends Component {
</div>
</div> : null}
{/* Title */}
{page.title !== '' ? <h1 class="title is-3 is-size-4-mobile">
{index ? <a class="link-muted" href={url_for(page.link || page.path)}>{page.title}</a> : page.title}
</h1> : null}
{page.title !== '' && index ? <p class="title is-3 is-size-4-mobile"><a class="link-muted" href={url_for(page.link || page.path)}>{page.title}</a></p> : null}
{page.title !== '' && !index ? <h1 class="title is-3 is-size-4-mobile">{page.title}</h1> : null}
{/* Content/Excerpt */}
<div class="content" dangerouslySetInnerHTML={{ __html: index && page.excerpt ? page.excerpt : page.content }}></div>
{/* Licensing block */}