diff --git a/lib/core/BlogPost.js b/lib/core/BlogPost.js index 19ed673bdf..753123085a 100644 --- a/lib/core/BlogPost.js +++ b/lib/core/BlogPost.js @@ -55,6 +55,16 @@ class BlogPost extends React.Component { ); + } else if (post.authorImage) { + return ( +
+ + + +
+ ); } else { return null; } @@ -99,6 +109,8 @@ class BlogPost extends React.Component { {post.author} +
+ {post.authorTitle}

{this.renderTitle()}

diff --git a/lib/core/BlogPostLayout.js b/lib/core/BlogPostLayout.js index dcb1f4d01f..f1fa76336e 100644 --- a/lib/core/BlogPostLayout.js +++ b/lib/core/BlogPostLayout.js @@ -15,6 +15,40 @@ const Site = require("./Site.js"); // used for entire blog posts, i.e., each written blog article with sidebar with site header/footer class BlogPostLayout extends React.Component { + + renderSocialButtons() { + const post = this.props.metadata; + + const fbLike = this.props.config.facebookAppId ? +

+
+ : null; + + const twitterShare = this.props.config.twitter ? + Tweet + : null; + + if (!fbLike && !twitterShare) { + return; + } + + return ( +
+ +
+ ); + } + render() { return ( + {this.renderSocialButtons()}
} + {this.props.config.facebookAppId && +