Skip to content

Instantly share code, notes, and snippets.

View lamenath's full-sized avatar
:octocat:
Focusing

Nathanael Lamelliere lamenath

:octocat:
Focusing
View GitHub Profile
@lamenath
lamenath / index.jade
Created May 27, 2016 09:17
Quickstart - replace static content by content managed by prismic.io
extends ./layout.jade
block body
div.welcome
img(src=pagecontent.getImage('page.image').url, class='star')
!= pagecontent.getStructuredText('page.title').asHtml(ctx.linkResolver)
!= pagecontent.getStructuredText('page.description').asHtml(ctx.linkResolver)
@lamenath
lamenath / table-example2.json
Created April 21, 2016 14:53
table example 2
{
"Main" : {
"table-example" : {
"fieldset" : "Table Example 1",
"type" : "Slices",
"config" : {
"choices" : {
"options" : {
"type" : "Group",
"fieldset" : "Table",
@lamenath
lamenath / blog-post-with-snippets.json
Created March 15, 2016 09:36
prismic.io Custom Type for a blog post with snippets using "Slices"
{
"Main" : {
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading1",
"placeholder" : "Title"
}
},
"description" : {
@lamenath
lamenath / page.json
Created November 27, 2015 08:46
page Custom Type using Slices
{
"Content" : {
"body" : {
"fieldset" : "Dynamic page zone...",
"type" : "Slices",
"config" : {
"labels" : {
"alternated-highlights" : [ {
"name" : "full",
"display" : "Full featured"
@lamenath
lamenath / image.json
Created September 30, 2015 09:14
image
{
"Main" : {
"key" : {
"type" : "Image",
"fieldset" : "Image",
"config" : {
"constraint" : {
"width" : 300,
"height" : 300
},
@lamenath
lamenath / structuredtext.json
Last active October 20, 2015 12:30
StructuredText
"key" : {
"type" : "StructuredText",
"fieldset" : "Text Description",
"config" : {
"multi" : "heading1,heading2,hyperlink,image,embed",
"placeholder" : "Title...",
"imageConstraint" : {
"width" : 300,
"height" : 200
},
@lamenath
lamenath / uid.json
Last active September 29, 2015 16:22
uid
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "Unique Document Identifier"
}
}
@lamenath
lamenath / autoupdate.json
Created September 18, 2015 14:03
auto-update option for date and timestamp fragments
{
"Main" : {
"date" : {
"type" : "Date",
"fieldset" : "Auto-update date",
"config" : {
"label" : "Auto-update date",
"update" : "now"
}
},
@lamenath
lamenath / allfragments.json
Last active November 29, 2016 18:33
all prismic fragments document mask
{
"Basic Types" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "Unique Document Identifier"
}
},
"text" : {
"type" : "Text",
@lamenath
lamenath / social-cards.json
Last active August 29, 2015 14:24
Social Cards Tab for prismic.io Document Mask
"Social Cards" : {
"social_cards_enabled" : {
"type" : "Select",
"fieldset" : "Social Sharing",
"config" : {
"placeholder" : "Disable",
"label" : "Enable Social Buttons",
"options" : [ "Enable" ]
}
},