1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +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

@ -118,8 +118,8 @@ And in your CSS select this class and style it with a background image. Assuming
```css
.delicious {
background: url(delicious.png) no-repeat center center;
padding-left: 20px;
background: url(delicious.png) no-repeat center center;
padding-left: 20px;
}
```
@ -128,10 +128,10 @@ If you want to use just icons and no text you should provide a link text anyway
```css
.delicious {
width: 16px;
height: 16px;
background: url(delicious.png) no-repeat center center;
text-indent: -999999px;
width: 16px;
height: 16px;
background: url(delicious.png) no-repeat center center;
text-indent: -999999px;
}
```

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