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} /> <Logo src={logo} />
</div> </div>
<div className={styles.titleSection}> <div className={styles.titleSection}>
<div className={cn(styles.title, styles.row, 'header-title')}>{name}</div> <h2 className={cn(styles.title, styles.row, 'header-title')}>{name}</h2>
<div className={cn(styles.subtitle, styles.row, 'header-subtitle')}> <h3 className={cn(styles.subtitle, styles.row, 'header-subtitle')}>
<Linkify>{title || summary}</Linkify> <Linkify>{title || summary}</Linkify>
</div> </h3>
<div className={cn(styles.tagList, styles.row)}> <div className={cn(styles.tagList, styles.row)}>
{tags.length > 0 && tags.map(tag => <span key={tag}>#{tag}&nbsp;</span>)} {tags.length > 0 && tags.map(tag => <span key={tag}>#{tag}&nbsp;</span>)}
</div> </div>