Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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