Support for YAML content

This commit is contained in:
Mathias Biilmann Christensen
2016-09-11 23:08:18 +02:00
parent bbbf3c5621
commit fcd0ce718a
10 changed files with 291 additions and 73 deletions

View File

@ -60,7 +60,8 @@ export default class EntryListing extends React.Component {
cardFor(collection, entry, link) {
//const { entry, getMedia, onChange, onAddMedia, onRemoveMedia } = this.props;
const card = Cards[collection.getIn(['card', 'type'])] || Cards._unknown;
const cartType = collection.getIn(['card', 'type']) || 'alltype';
const card = Cards[cartType] || Cards._unknown;
return React.createElement(card, {
key: entry.get('slug'),
collection: collection,