Add h2 and h3 tags for page structure. Closes #2623

This commit is contained in:
Gabe Kangas 2023-01-24 14:28:15 -08:00
parent 3aab43c37c
commit c6eecada6b
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -29,10 +29,10 @@ export const ContentHeader: FC<ContentHeaderProps> = ({
<Logo src={logo} />
</div>
<div className={styles.titleSection}>
<div className={cn(styles.title, styles.row, 'header-title')}>{name}</div>
<div className={cn(styles.subtitle, styles.row, 'header-subtitle')}>
<h2 className={cn(styles.title, styles.row, 'header-title')}>{name}</h2>
<h3 className={cn(styles.subtitle, styles.row, 'header-subtitle')}>
<Linkify>{title || summary}</Linkify>
</div>
</h3>
<div className={cn(styles.tagList, styles.row)}>
{tags.length > 0 && tags.map(tag => <span key={tag}>#{tag}&nbsp;</span>)}
</div>