Browse Source

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

pull/2632/head
Gabe Kangas 3 years ago
parent
commit
c6eecada6b
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 6
      web/components/common/ContentHeader/ContentHeader.tsx

6
web/components/common/ContentHeader/ContentHeader.tsx

@ -29,10 +29,10 @@ export const ContentHeader: FC<ContentHeaderProps> = ({ @@ -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>

Loading…
Cancel
Save