Skip to content

Instantly share code, notes, and snippets.

@faresd
Created November 9, 2015 11:54
Show Gist options
  • Save faresd/89ccd4d6baae26d0bc16 to your computer and use it in GitHub Desktop.
Save faresd/89ccd4d6baae26d0bc16 to your computer and use it in GitHub Desktop.
Post
{
"Blog Post" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "unique-identifier-for-blog-post-url"
}
},
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading1",
"placeholder" : "Post title..."
}
},
"shortlede" : {
"type" : "StructuredText",
"config" : {
"single" : "paragraph",
"placeholder" : "Short lede (the shortest catcher to your topic)"
}
},
"image" : {
"type" : "Image",
"config" : {
"placeholder" : "Main blog post image",
"thumbnails" : [ {
"name" : "thumbnail",
"width" : 150,
"height" : 80
}, {
"name" : "medium",
"width" : 300,
"height" : 160
}, {
"name" : "large",
"width" : 640,
"height" : 340
} ]
}
},
"body" : {
"fieldset" : "Post content",
"type" : "Slices",
"config" : {
"labels" : {
"image-with-caption" : [ {
"name" : "image-left",
"display" : "Left"
} ]
},
"choices" : {
"text" : {
"type" : "StructuredText",
"fieldset" : "Text",
"config" : {
"multi" : "paragraph, heading2, heading3, strong, em, hyperlink",
"placeholder" : "Post text..."
}
},
"quote" : {
"type" : "StructuredText",
"fieldset" : "Quote",
"config" : {
"placeholder" : "Post quote...",
"single" : "paragraph"
}
},
"image-with-caption" : {
"type" : "Group",
"fieldset" : "Post image and caption",
"config" : {
"fields" : {
"illustration" : {
"type" : "Image",
"config" : {
"constraint" : {
"width" : 640
}
}
},
"caption" : {
"type" : "StructuredText",
"config" : {
"single" : "heading3",
"placeholder" : "Image caption..."
}
}
}
}
}
}
}
}
},
"Metadata" : {
"author" : {
"fieldset" : "Author",
"type" : "Link",
"config" : {
"placeholder" : "Select an author",
"select" : "document",
"masks" : [ "author" ]
}
},
"date" : {
"fieldset" : "Post properties",
"type" : "Date",
"config" : {
"label" : "Post date"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment