Skip to content

Instantly share code, notes, and snippets.

@that0n3guy
Created January 13, 2020 21:09
Show Gist options
  • Save that0n3guy/cc9f60ff56df5278dbdf4adf486c579b to your computer and use it in GitHub Desktop.
Save that0n3guy/cc9f60ff56df5278dbdf4adf486c579b to your computer and use it in GitHub Desktop.
longform blueprint
title: 'Long Form Post'
sections:
main:
display: Main
fields:
-
handle: title
field:
type: text
localizable: true
-
handle: sub_title
field:
type: textarea
display: Subtitle
localizable: true
-
handle: hero_image
field:
type: assets
display: 'Hero Image'
container: s3container
folder: img
max_files: 1
restrict: false
mode: grid
allow_uploads: true
if:
page_type: hero
-
handle: long_form
field:
type: bard
display: 'Long Form Content'
sets:
image:
display: Image
fields:
-
handle: photo
field:
type: assets
display: Photo
container: s3container
folder: img
max_files: 1
mode: grid
restrict: false
allow_uploads: true
-
handle: caption
field:
type: text
-
handle: photo_size_grid
field:
fields:
-
handle: page_width
field:
options:
img-content-w: 'Content width'
img-full-w: 'Full width'
img-wide-w: 'Wide width'
clearable: false
multiple: false
searchable: false
taggable: false
push_tags: false
default: img-content-w
type: radio
localizable: false
display: 'Page Width'
-
handle: crop_height
field:
type: integer
instructions: 'Leave blank to ignore'
localizable: false
display: 'Crop height'
-
handle: crop_width
field:
type: integer
instructions: 'Leave blank to ignore'
localizable: false
display: 'Crop Width'
mode: table
max_rows: 1
min_rows: 1
reorderable: false
type: grid
localizable: false
display: 'Photo size'
add_row: 'Change the default image size settings'
quote:
display: 'Pull Quote'
fields:
-
handle: quote
field:
buttons:
- h2
- h3
- bold
- italic
- unorderedlist
- orderedlist
- removeformat
- anchor
save_html: false
toolbar_mode: fixed
link_noopener: false
link_noreferrer: false
target_blank: false
reading_time: false
fullscreen: false
allow_source: false
type: bard
localizable: false
display: Quote
-
handle: cite
field:
type: text
display: Cite
character_limit: 0
-
handle: quote_align
field:
type: radio
options:
quotetext-center: Center
quotetext-left: Left
quotetext-right: Right
display: 'Quote alignment'
default: text-center
clearable: false
multiple: false
searchable: true
taggable: false
push_tags: false
flex_row:
display: 'flex row'
fields:
-
handle: text
field:
type: bard
restrict_assets: false
display: text
save_html: false
buttons:
- bold
- italic
- orderedlist
- html
- outdent
- indent
- alignment
- horizontalrule
- quote
- codeblock
- h1
- h2
- h3
- h4
- h5
- h6
- anchor
- unorderedlist
toolbar_mode: fixed
link_noopener: false
link_noreferrer: false
target_blank: false
reading_time: false
fullscreen: true
allow_source: true
-
handle: layout_classes
field:
type: select
options:
w-full: w-full
w-1/2: w-1/2
w-1/3: w-1/3
w-1/4: w-1/4
w-2/3: w-2/3
w-3/4: w-3/4
object-contain: object-contain
object-cover: object-cover
create: false
display: 'Layout Classes'
buttons:
- h2
- h3
- bold
- italic
- unorderedlist
- orderedlist
- removeformat
- quote
- anchor
- image
- table
- strikethrough
save_html: true
toolbar_mode: fixed
link_noopener: false
link_noreferrer: false
target_blank: false
reading_time: true
fullscreen: true
allow_source: true
container: s3container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment