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

Commit

Permalink
Changed wrapping <div> of Teaser component and markdown wrapper to <a…
Browse files Browse the repository at this point in the history
…rticle>
  • Loading branch information
kylegach committed Apr 16, 2016
1 parent f8b467a commit 9b7d4b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/Teaser.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class Teaser extends Component {

return (
// TODO: Replace the flexItem-50 class with something more dynamic (quantity queries?)
<div className={row ? 'flexItem-50 mb-3 mb-0@sm pr-3@sm' : 'mb-3 mb-4@sm'}>
<article className={row ? 'flexItem-50 mb-3 mb-0@sm pr-3@sm' : 'mb-3 mb-4@sm'}>
<h3 className="h4 mb-0"><Link to={prefixLink(page.path)} className="camoLink">{title}</Link></h3>
{byline}
<div className="mt-2">{blurb}</div>
<Link to={prefixLink(page.path)} className="inlineBlock mt-2">Keep reading&hellip;</Link>
</div>
</article>
)
}
}
Expand Down
12 changes: 7 additions & 5 deletions wrappers/md.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ class MDWrapper extends Component {
return (
<DocumentTitle title={`${title}${config.siteTitle}`}>
<main className="maxW-3 mx-auto">
<h1 className="h1 mb-0">{title}</h1>
{ byline }
{ intro }
{ workHeader }
<div dangerouslySetInnerHTML={{ __html: page.data.body }} className="markdown mt-3" />
<article>
<h1 className="h1 mb-0">{title}</h1>
{ byline }
{ intro }
{ workHeader }
<div dangerouslySetInnerHTML={{ __html: page.data.body }} className="markdown mt-3" />
</article>
</main>
</DocumentTitle>
)
Expand Down

0 comments on commit 9b7d4b0

Please sign in to comment.