diff --git a/content/posts/2009-03-29-ultimate-coda-wordpress-share-link-bonanza.md b/content/posts/2009-03-29-ultimate-coda-wordpress-share-link-bonanza.md index 718f7dcc..88037985 100644 --- a/content/posts/2009-03-29-ultimate-coda-wordpress-share-link-bonanza.md +++ b/content/posts/2009-03-29-ultimate-coda-wordpress-share-link-bonanza.md @@ -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; } ``` diff --git a/src/templates/post.jsx b/src/templates/Post.jsx similarity index 92% rename from src/templates/post.jsx rename to src/templates/Post.jsx index ceff24bb..9f29dbc0 100644 --- a/src/templates/post.jsx +++ b/src/templates/Post.jsx @@ -66,16 +66,15 @@ const Post = ({ data, location }) => {
+ + {image && (
{title}
)} -
+
@@ -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