Skip to content

Instantly share code, notes, and snippets.

@jpotts
Created November 3, 2014 00:38
Show Gist options
  • Save jpotts/c16f9af1801c824494b8 to your computer and use it in GitHub Desktop.
Save jpotts/c16f9af1801c824494b8 to your computer and use it in GitHub Desktop.
Snippet of prismic.io blog post document mask
{
"Blog Post" : {
"body" : {
"type" : "StructuredText",
"config" : {
"placeholder" : "Start writing your blog post here...",
"minHeight" : "400px",
"imageConstraint" : {
"width" : 640.0
}
}
}
},
"Metadata" : {
"shortlede" : {
"fieldset" : "Short lede (~15 words)",
"type" : "StructuredText",
"config" : {
"single" : "paragraph",
"placeholder" : "The shortest catcher to your topic"
}
},
"image" : {
"fieldset" : "Main image",
"type" : "Image",
"config" : {
"constraint" : {
"width" : 800.0
},
"thumbnails" : [ {
"name" : "Icon",
"width" : 100.0,
"height" : 100.0
}, {
"name" : "Column",
"width" : 320.0
}, {
"name" : "Wide",
"width" : 600.0,
"height" : 300.0
} ]
}
},
"author" : {
"fieldset" : "Author",
"type" : "Link",
"config" : {
"select" : "document",
"masks" : [ "author" ]
}
},
...SNIP...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment