Skip to content

Instantly share code, notes, and snippets.

@firflant
Last active December 21, 2017 14:20
Show Gist options
  • Save firflant/de5d5d9551a1df416b151683569421b9 to your computer and use it in GitHub Desktop.
Save firflant/de5d5d9551a1df416b151683569421b9 to your computer and use it in GitHub Desktop.
const story = {
id: 12345,
slug: 'pionner-in-marketing',
type: 'story', // One of two accepted values (story|graph)
category: 'People',
subcategory: 'Maryam Banikarim',
publisher: 'huffpost' // uniqie key from dictionary that we have to create.
title: 'A pionner in Marketing', // Is already.
description: 'I\'m surprised you had the courage to take the responsibility yourself. You mean it controls your actions? Remember, a Jedi can feel the Force flowing through him. But with the blast shield down, I can&aposm;t even see! How am I supposed to fight?', // Is already.
image: { // Is already, but as a string, not object and links works only on production.
full: 'http://via.placeholder.com/1101x577',
topstory: 'http://via.placeholder.com/550x500',
highlighted: 'http://via.placeholder.com/346x366',
panoramical: 'http://via.placeholder.com/345x185',
panoramicaltiny: 'http://via.placeholder.com/208x111',
tinysquare: 'http://via.placeholder.com/70x70',
},
time: '10', // time of read in minutes
tags: ['trending', 'amazingpeople'],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment