Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.

Commit 9b7d4b0

Browse files
committed
Changed wrapping <div> of Teaser component and markdown wrapper to <article>
1 parent f8b467a commit 9b7d4b0

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

components/Teaser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class Teaser extends Component {
2121

2222
return (
2323
// TODO: Replace the flexItem-50 class with something more dynamic (quantity queries?)
24-
<div className={row ? 'flexItem-50 mb-3 mb-0@sm pr-3@sm' : 'mb-3 mb-4@sm'}>
24+
<article className={row ? 'flexItem-50 mb-3 mb-0@sm pr-3@sm' : 'mb-3 mb-4@sm'}>
2525
<h3 className="h4 mb-0"><Link to={prefixLink(page.path)} className="camoLink">{title}</Link></h3>
2626
{byline}
2727
<div className="mt-2">{blurb}</div>
2828
<Link to={prefixLink(page.path)} className="inlineBlock mt-2">Keep reading&hellip;</Link>
29-
</div>
29+
</article>
3030
)
3131
}
3232
}

wrappers/md.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@ class MDWrapper extends Component {
7777
return (
7878
<DocumentTitle title={`${title}${config.siteTitle}`}>
7979
<main className="maxW-3 mx-auto">
80-
<h1 className="h1 mb-0">{title}</h1>
81-
{ byline }
82-
{ intro }
83-
{ workHeader }
84-
<div dangerouslySetInnerHTML={{ __html: page.data.body }} className="markdown mt-3" />
80+
<article>
81+
<h1 className="h1 mb-0">{title}</h1>
82+
{ byline }
83+
{ intro }
84+
{ workHeader }
85+
<div dangerouslySetInnerHTML={{ __html: page.data.body }} className="markdown mt-3" />
86+
</article>
8587
</main>
8688
</DocumentTitle>
8789
)

0 commit comments

Comments
 (0)