1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-01-05 03:15:07 +01:00
This commit is contained in:
Matthias Kretschmann 2018-09-25 23:16:05 +02:00
parent 77afcb72b1
commit 6afcb5cb11
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -28,15 +28,13 @@ const Posts = ({ data, location, pageContext }) => {
)} )}
{image && ( {image && (
<figure className={styles.hentryImage}> <Link to={slug}>
<Link to={slug}> <PostImage
<PostImage title={type === 'photo' ? title : null}
title={type === 'photo' ? title : null} fluid={image.childImageSharp.fluid}
fluid={image.childImageSharp.fluid} alt={title}
alt={title} />
/> </Link>
</Link>
</figure>
)} )}
{type === 'post' && <PostLead post={node} />} {type === 'post' && <PostLead post={node} />}