Skip to content

Instantly share code, notes, and snippets.

@nataliepo
Last active December 22, 2015 16:39
Show Gist options
  • Save nataliepo/6500632 to your computer and use it in GitHub Desktop.
Save nataliepo/6500632 to your computer and use it in GitHub Desktop.
{
"id": 1234, # unique identifier - from Tierra DB is OK
"title": "Alix Pearlstein",
"author": "John Pilson",
"category": "Art",
"subcategory": "Interview",
"tags": "art, interview, sculpture, New York, B, Wurtz, John Newman"
"body": "<!--IMAGE 0--><p>Artists are expected to participate in all sorts of conversations...",
"images": [{
"id": 1234678,
"permalink_full": "http://assets.bombsite.com/2013/09/foo_full.jpg",
"permalink_thumbnail": http://assets.bombsite.com/2013/09/foo_thumbnail.jpg",
"caption": "Production still from <i>The Dark Pavement</i>, 2013, ...",
"source": "National Archives,"
}],
"homepage_image": {
"id": 1234678,
"permalink_full": "http://assets.bombsite.com/2013/09/foo_full.jpg",
"permalink_thumbnail": http://assets.bombsite.com/2013/09/foo_thumbnail.jpg",
"caption": "Production still from <i>The Dark Pavement</i>, 2013, ...",
"source": "National Archives,"
},
"publish_date": "123646357",
"notes": "<ol><li>Here is the first note.</li><li>And the second.</li></ol>",
"permalink": "http://bombsite.com/path/to/new/permalink",
"old_permalink": "http://bombsite.com/path/to/old/permalink",
"issue": {
"id": 98756, # unique identifier from Tierra DB is OK here
"name": "Summer 2013",
}, # if no issue, this is a web post
"excerpt": "We are deploy affected by the sudden passing..." # used on homepage sometimes,
"has_video": False #if true, we'll put a play button over the thumbnail on the homepage,
"is_archive": False #if true, post will get black and white treatment on homepage and in search results
}
Asset sizes:
* Thumbnail should be 220 x 148
* Full should be 460 wide, with aspect ratio tall (LIKELY WILL CHANGE; this is from Tom's design notes from today)
Other notes:
* Category, Subcategory, and Tags should be echoed into the search space so we can drill down into the archive results
* I got gutsy with the image markup in the "body" value. If there are embedded links, I think that's OK as long as we have an assets array and a separate homepage_image field for overrides
* Namespaces -- we should use namespaces for Magazine posts and Web posts at the very least
* Could even create one new namespace for each Magazine if that's feasible
* Expecting to maintain stories in carousel and ordering of articles in an issue through a different app (homepage manager like paper's)
@gknauss
Copy link

gknauss commented Sep 13, 2013

This gist is related to the ticket https://github.com/29thStPublishing/BOMB/issues/23. Just wanted a way to jump back and forth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment