Skip to content

Commit

Permalink
div to article fix - see gatsbyjs/gatsby#8560 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
funkfinger committed Mar 8, 2020
1 parent d1afcf2 commit 23b2a74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/MdxPostTemplate/MdxPostTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export const PageTemplatePure = ({
<HeroImage img={heroImage.childImageSharp.fluid} />
) : null;
return (
<div className={`single-post${obsolete ? ' obsolete' : ''}`}>
<article className={`single-post${obsolete ? ' obsolete' : ''}`}>
{img}
<div className="single-post-body">
<h1>{title}</h1>
<div className="post-date">{date}</div>
<MDXRenderer>{body}</MDXRenderer>
</div>
</div>
</article>
);
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/PostExcerpt/PostExcerpt.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PostExcerpt = ({ title, children, img, slug, first, obsolete }) => {
obsolete ? ' obsolete' : ''
}`;
return (
<div className={c}>
<article className={c}>
<Link to={slug}>{i}</Link>
<div className="post-excerpt-text">
<Link to={slug}>
Expand All @@ -21,7 +21,7 @@ const PostExcerpt = ({ title, children, img, slug, first, obsolete }) => {
<div className="more-link">more...</div>
</Link>
</div>
</div>
</article>
);
};

Expand Down

0 comments on commit 23b2a74

Please sign in to comment.