1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00

rebase fixes

This commit is contained in:
Matthias Kretschmann 2018-07-21 13:45:38 +02:00
parent dd1be61add
commit ae5bc63a02
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 17 additions and 10 deletions

View File

@ -66,16 +66,15 @@ const Post = ({ data, location }) => {
<article className={styles.hentry}>
<PostTitle type={type} linkurl={linkurl} title={title} />
<PostLead post={post} />
{image && (
<figure className={styles.hentry__teaser}>
<Image fluid={image.childImageSharp.fluid} alt={title} />
</figure>
)}
<div
className={styles.hentry__content}
dangerouslySetInnerHTML={{ __html: post.html }}
/>
<PostContent post={post} />
<PostMeta post={post} meta={meta} />
</article>
@ -83,6 +82,14 @@ const Post = ({ data, location }) => {
)
}
PostLead.propTypes = {
post: PropTypes.object.isRequired
}
PostContent.propTypes = {
post: PropTypes.object.isRequired
}
Post.propTypes = {
data: PropTypes.object.isRequired,
location: PropTypes.object.isRequired