Skip to content

Instantly share code, notes, and snippets.

Avatar

Rudy Rigot rudyrigot

View GitHub Profile
@rudyrigot
rudyrigot / homepage.json
Last active Sep 25, 2016
All the JSON masks for the prismic.io Bootstrap3 example
View homepage.json
{
"For all the website" : {
"website_title" : {
"fieldset" : "Website's title",
"type" : "StructuredText",
"config" : {
"placeholder" : "You shouldn't make it longer that 2 characters.",
"single" : "heading1"
}
},
@rudyrigot
rudyrigot / gist:7129058
Created Oct 24, 2013
An example of a pretty complex StructuredText field as seen in a prismic.io's JSON collection response
View gist:7129058
{
"body" : {
"type" : "StructuredText",
"value" : [
{
"type" : "heading1",
"text" : "The nicest macarons are the fondest",
"spans" : [ ]
},
{
@rudyrigot
rudyrigot / about.json
Created Mar 28, 2014
JSON mask for the "about" content type in the front-end-only example
View about.json
{
"Main" : {
"title" : {
"fieldset" : "Slide's title",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"lede" : {
@rudyrigot
rudyrigot / client.json
Created Mar 28, 2014
JSON mask for the "client" content type in the front-end-only example
View client.json
{
"Main" : {
"name" : {
"fieldset" : "Name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"logo" : {
@rudyrigot
rudyrigot / service.json
Created Mar 28, 2014
JSON mask for the "service" content type in the front-end-only example
View service.json
{
"Main" : {
"name" : {
"fieldset" : "Name of the service",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"catcher" : {
@rudyrigot
rudyrigot / staff.json
Created Mar 28, 2014
JSON mask for the "staff" content type in the front-end-only example
View staff.json
{
"Main" : {
"name" : {
"fieldset" : "Full name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"title" : {
@rudyrigot
rudyrigot / contact.json
Created Mar 28, 2014
JSON mask for the "content" content type in the front-end-only example
View contact.json
{
"Main" : {
"icon_code" : {
"fieldset" : "Icon code (see FontAwesome's icons)",
"type" : "Text"
},
"title" : {
"fieldset" : "Title",
"type" : "StructuredText",
"config" : {
@rudyrigot
rudyrigot / portfolio.json
Created Mar 28, 2014
JSON mask for the "about" content type in the front-end-only example
View portfolio.json
{
"Main" : {
"title" : {
"fieldset" : "Title of the project",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"image" : {
@rudyrigot
rudyrigot / portfolio-section.json
Created Mar 28, 2014
JSON mask for the "portfolio-section" content type in the front-end-only example
View portfolio-section.json
{
"Main" : {
"name" : {
"fieldset" : "Name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
}
}
@rudyrigot
rudyrigot / copy.json
Created Mar 28, 2014
JSON mask for the "copy" content type in the front-end-only example
View copy.json
{
"About and footer" : {
"company_name" : {
"fieldset" : "Company's name",
"type" : "StructuredText",
"config" : {
"single" : "heading1"
}
},
"about_nav_label" : {