Skip to content

Instantly share code, notes, and snippets.

@iwatakeshi
Last active June 15, 2020 02:31
Show Gist options
  • Save iwatakeshi/fe3fcbb73f51be48f8267a94afa5b197 to your computer and use it in GitHub Desktop.
Save iwatakeshi/fe3fcbb73f51be48f8267a94afa5b197 to your computer and use it in GitHub Desktop.
The Page content type for prismify-prismic-next
{
"Main" : {
"uid" : {
"type" : "UID",
"config" : {
"label" : "Slug",
"placeholder" : "Slug",
"useAsTitle" : true
}
},
"body" : {
"type" : "Slices",
"fieldset" : "Slice zone",
"config" : {
"labels" : {
"spacer" : [ ],
"image" : [ {
"name" : "with_link",
"display" : "with link"
}, {
"name" : "with_description",
"display" : "with description"
} ],
"title" : [ ]
},
"choices" : {
"spacer" : {
"type" : "Slice",
"fieldset" : "Spacer",
"description" : "A section to give space between elements",
"icon" : "crop_7_5",
"display" : "list",
"non-repeat" : {
"space" : {
"type" : "Select",
"config" : {
"options" : [ "1rem", "2rem", "3rem", "4rem", "5rem", "6rem", "7rem", "8rem", "9rem", "10rem" ],
"default_value" : "1rem",
"label" : "Space",
"placeholder" : "Amount"
}
}
},
"repeat" : { }
},
"title" : {
"type" : "Slice",
"fieldset" : "Title",
"description" : "A title",
"icon" : "text_fields",
"display" : "list",
"non-repeat" : {
"title" : {
"type" : "StructuredText",
"config" : {
"multi" : "heading1, heading2, heading3, heading4, heading5, heading6, strong, em, hyperlink",
"allowTargetBlank" : true,
"label" : "Title",
"placeholder" : "Title"
}
},
"text_transform" : {
"type" : "Select",
"config" : {
"options" : [ "none", "capitalize", "uppercase", "lowercase" ],
"default_value" : "none",
"label" : "Text Transform",
"placeholder" : "Text Transform"
}
},
"text_align" : {
"type" : "Select",
"config" : {
"options" : [ "left", "right", "center", "justify" ],
"default_value" : "left",
"label" : "Text Align",
"placeholder" : "Text Align"
}
}
},
"repeat" : { }
},
"text" : {
"type" : "Slice",
"fieldset" : "Text",
"description" : "Rich Text Section",
"icon" : "text_fields",
"non-repeat" : {
"text" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph, preformatted, heading1, heading2, heading3, heading4, heading5, heading6, strong, em, hyperlink, image, embed, list-item, o-list-item, o-list-item",
"allowTargetBlank" : true,
"label" : "text",
"placeholder" : "Your content here",
"labels" : {
"" : [ {
"name" : "text-left"
}, {
"name" : "text-center"
}, {
"name" : "text-right"
}, {
"name" : "text-justify"
}, {
"name" : "float-left"
}, {
"name" : "float-right"
} ]
}
}
}
},
"repeat" : { }
},
"image" : {
"type" : "Slice",
"fieldset" : "Image",
"description" : "An image section",
"icon" : "image",
"display" : "list",
"non-repeat" : {
"image" : {
"type" : "Image",
"config" : {
"constraint" : {
"width" : null
},
"thumbnails" : [ {
"name" : "sm",
"width" : 400,
"height" : null
}, {
"name" : "md",
"width" : 800,
"height" : null
}, {
"name" : "lg",
"width" : 1500,
"height" : null
} ],
"label" : "Image"
}
},
"image_link" : {
"type" : "Link",
"config" : {
"allowTargetBlank" : true,
"label" : "Image Link",
"placeholder" : "Link"
}
}
},
"repeat" : { }
}
}
}
}
},
"SEO" : {
"meta_title" : {
"type" : "Text",
"config" : {
"label" : "Meta Title",
"placeholder" : "Title"
}
},
"meta_description" : {
"type" : "Text",
"config" : {
"label" : "Meta Description",
"placeholder" : "Description"
}
},
"meta_canonical" : {
"type" : "Text",
"config" : {
"label" : "Meta Canonical",
"placeholder" : "Canonical"
}
},
"body1" : {
"type" : "Slices",
"fieldset" : "Slice zone",
"config" : {
"labels" : {
"open_graph" : [ ],
"twitter" : [ ]
},
"choices" : {
"open_graph" : {
"type" : "Slice",
"fieldset" : "Open Graph",
"description" : "A general open graph SEO card",
"icon" : "graphic_eq",
"display" : "list",
"non-repeat" : {
"og_title" : {
"type" : "Text",
"config" : {
"label" : "OG Title",
"placeholder" : "Title"
}
},
"og_description" : {
"type" : "Text",
"config" : {
"label" : "OG Description",
"placeholder" : "Description"
}
},
"og_url" : {
"type" : "Link",
"config" : {
"label" : "OG URL",
"placeholder" : "URL"
}
},
"og_image" : {
"type" : "Image",
"config" : {
"constraint" : {
"width" : 1200,
"height" : 600
},
"thumbnails" : [ ],
"label" : "Image"
}
}
},
"repeat" : { }
},
"twitter" : {
"type" : "Slice",
"fieldset" : "Twitter",
"description" : "A general Twitter card",
"icon" : "face",
"display" : "list",
"non-repeat" : {
"tw_site" : {
"type" : "Text",
"config" : {
"label" : "TW Site",
"placeholder" : "Site (e.g. @matsuyacreative)"
}
},
"tw_handle" : {
"type" : "Text",
"config" : {
"label" : "TW Handle",
"placeholder" : "Handle (e.g. @johnfmatsuya)"
}
},
"tw_card_type" : {
"type" : "Select",
"config" : {
"options" : [ "Summary", "Summary Large Image" ],
"default_value" : "Summary",
"label" : "TW Card Type",
"placeholder" : "Card Type"
}
}
},
"repeat" : { }
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment