@economist/component-blog-post
Advanced tools
Comparing version 1.3.0 to 1.3.1
46
index.js
@@ -31,25 +31,2 @@ 'use strict'; | ||
var groups = []; | ||
if (this.props.rubric) { | ||
content.push(_react2['default'].createElement( | ||
'div', | ||
{ | ||
className: 'blog-post__rubric', | ||
itemProp: 'description', | ||
key: 'blog-post__rubric' | ||
}, | ||
this.props.rubric | ||
)); | ||
} | ||
if (this.props.image && this.props.image.src) { | ||
groups.push(_react2['default'].createElement( | ||
'div', | ||
{ className: 'blog-post__group-image', | ||
key: 'blog-post__group-image' | ||
}, | ||
_react2['default'].createElement('img', _extends({}, this.props.image, { | ||
itemProp: 'image', | ||
className: 'blog-post__img' | ||
})) | ||
)); | ||
} | ||
if (this.props.section) { | ||
@@ -88,2 +65,25 @@ content.push(_react2['default'].createElement( | ||
} | ||
if (this.props.rubric) { | ||
content.push(_react2['default'].createElement( | ||
'div', | ||
{ | ||
className: 'blog-post__rubric', | ||
itemProp: 'description', | ||
key: 'blog-post__rubric' | ||
}, | ||
this.props.rubric | ||
)); | ||
} | ||
if (this.props.image && this.props.image.src) { | ||
groups.push(_react2['default'].createElement( | ||
'div', | ||
{ className: 'blog-post__group-image', | ||
key: 'blog-post__group-image' | ||
}, | ||
_react2['default'].createElement('img', _extends({}, this.props.image, { | ||
itemProp: 'image', | ||
className: 'blog-post__img' | ||
})) | ||
)); | ||
} | ||
var asideableContent = []; | ||
@@ -90,0 +90,0 @@ if (this.props.dateTime) { |
{ | ||
"name": "@economist/component-blog-post", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Blog post", | ||
@@ -5,0 +5,0 @@ "author": "The Economist (http://economist.com)", |