grav/themes/quark-open-publishing/blueprints/item.yaml

227 lines
7.0 KiB
YAML

extends@: default
form:
fields:
tabs:
fields:
content:
type: tab
fields:
content:
markdown: true
default: "Your page summary goes here.\n\n===\n\nYour page content goes here."
blog:
type: tab
title: Blog Item
fields:
header_image:
type: section
title: Header Image
underline: true
header.header_image:
type: toggle
toggleable: true
label: Display Header Image
help: Enabled displaying of a header image
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
header.header_image_file:
type: text
toggleable: true
label: Image File
help: image filename that exists in the page folder. If not provided, will use the first image found.
placeholder: 'For example: myimage.jpg'
header.header_image_width:
type: text
toggleable: true
label: Image Width
size: small
help: Header width in px
placeholder: Default is 900
validate:
type: int
min: 0
max: 5000
header.header_image_height:
type: text
toggleable: true
label: Image Height
size: small
help: Header height in px
placeholder: Default is 300
validate:
type: int
min: 0
max: 5000
summary:
type: section
title: Summary
underline: true
header.summary.enabled:
type: toggle
toggleable: true
label: Summary
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
header.summary.format:
type: select
toggleable: true
label: Format
classes: fancy
options:
'short': 'Use the first occurence of delimiter or size'
'long': 'Summary delimiter will be ignored'
header.summary.size:
type: text
toggleable: true
label: Size
classes: large
placeholder: 300
validate:
type: int
min: 1
header.summary.delimiter:
type: text
toggleable: true
label: Summary delimiter
classes: large
placeholder: ===
openpublishingspace1:
type: section
title: Title Icon
underline: true
header.post_icon:
type: text
size: small
label: Font Awesome Icon for Blog Item
description: Short name, e.g. 'newspaper-o'.
help: Optional Font Awesome icon to override the default blog item title icon
default: null
validate:
type: text
openpublishingspace2:
type: section
title: Display in Blog List
underline: true
header.hide_from_post_list:
type: toggle
label: Display this Item in Blog List
help: Determines if this page (i.e. post) will appear in the blog index
default: 0
highlight: 0
options:
0: Yes
1: No
validate:
type: bool
contact:
type: tab
title: Events
fields:
header.content.items.@taxonomy.type:
type: text
label: Taxonomy Type
default: event
header.content.items.@taxonomy.event_repeat:
type: text
label: Repeats On
placeholder: "[M,T,W,R,F,S,U]"
header.content.items.@taxonomy.event_freq:
type: text
label: Frequency
placeholder: weekly
header.content.dateRange.start:
type: date
label: Start Date
header.content.dateRange.end:
type: date
label: End Date
header.content.order.by:
type: text
label: Order By
default: date
header.content.order.dir:
type: text
label: Order Direction
default: asc
header.content.limit:
type: text
label: limit
default: 10
header.content.pagination:
label: Pagination
type: toggle
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
hero_title:
type: spacer
title: Hero Section
header.hero_classes:
type: text
label: Hero Classes
markdown: true
description: 'There are several Hero class options that can be listed here (space separated):<br />`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`<br />Please consult the [Quark documentation](https://github.com/getgrav/grav-theme-quark#hero-options) for more details.'
data-default@: '\Grav\Theme\QuarkOpenPublishing::getblogpageheroclasses'
header.hero_image:
type: filepicker
label: Hero Image
preview_images: true
description: 'If not specified, this defaults to the first image found in the page''s folder'
header.header_image_alt_text:
type: text
size: medium
label: Image Alternative Text
default: null
header.header_image_credit:
type: text
size: medium
label: Image Caption
default: null
header.header_image_creditlink:
type: text
size: long
label: Image Caption URL
default: null
validate:
type: URL
import@:
type: partials/blog-bits
context: blueprints://pages