Track all types in git, sync to server on deploy
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
This commit is contained in:
150
types/content_layout.json5
Normal file
150
types/content_layout.json5
Normal file
@@ -0,0 +1,150 @@
|
||||
{
|
||||
// Equivalent to: CF_Content interface
|
||||
// Base type for pages/posts with a 3-row content layout
|
||||
name: "content_layout",
|
||||
description: "Base layout with 3 content rows (inherited by page, post, etc.)",
|
||||
tags: ["layout", "partial"],
|
||||
category: "layout",
|
||||
fields: {
|
||||
row1JustifyContent: {
|
||||
type: "string",
|
||||
enum: [
|
||||
"start",
|
||||
"end",
|
||||
"center",
|
||||
"between",
|
||||
"around",
|
||||
"evenly"
|
||||
],
|
||||
default: "start",
|
||||
description: "Justify content for row 1",
|
||||
},
|
||||
row1AlignItems: {
|
||||
type: "string",
|
||||
enum: [
|
||||
"start",
|
||||
"end",
|
||||
"center",
|
||||
"baseline",
|
||||
"stretch"
|
||||
],
|
||||
default: "stretch",
|
||||
description: "Align items for row 1",
|
||||
},
|
||||
row1Content: {
|
||||
type: "array",
|
||||
items: {
|
||||
type: "reference",
|
||||
collections: [
|
||||
"markdown",
|
||||
"post_overview",
|
||||
"html",
|
||||
"headline",
|
||||
"image",
|
||||
"quote",
|
||||
"youtube_video",
|
||||
"image_gallery",
|
||||
"iframe",
|
||||
"searchable_text",
|
||||
"fullwidth_banner",
|
||||
"list",
|
||||
"link_list",
|
||||
"calendar"
|
||||
],
|
||||
},
|
||||
description: "Content components for row 1 (Markdown, Post Overview, HTML, Headline, Image, …)",
|
||||
},
|
||||
row2JustifyContent: {
|
||||
type: "string",
|
||||
enum: [
|
||||
"start",
|
||||
"end",
|
||||
"center",
|
||||
"between",
|
||||
"around",
|
||||
"evenly"
|
||||
],
|
||||
default: "start",
|
||||
},
|
||||
row2AlignItems: {
|
||||
type: "string",
|
||||
enum: [
|
||||
"start",
|
||||
"end",
|
||||
"center",
|
||||
"baseline",
|
||||
"stretch"
|
||||
],
|
||||
default: "stretch",
|
||||
},
|
||||
row2Content: {
|
||||
type: "array",
|
||||
items: {
|
||||
type: "reference",
|
||||
collections: [
|
||||
"markdown",
|
||||
"post_overview",
|
||||
"html",
|
||||
"headline",
|
||||
"image",
|
||||
"quote",
|
||||
"youtube_video",
|
||||
"image_gallery",
|
||||
"iframe",
|
||||
"searchable_text",
|
||||
"fullwidth_banner",
|
||||
"list",
|
||||
"link_list",
|
||||
"calendar"
|
||||
],
|
||||
},
|
||||
description: "Content components for row 2",
|
||||
},
|
||||
row3JustifyContent: {
|
||||
type: "string",
|
||||
enum: [
|
||||
"start",
|
||||
"end",
|
||||
"center",
|
||||
"between",
|
||||
"around",
|
||||
"evenly"
|
||||
],
|
||||
default: "start",
|
||||
},
|
||||
row3AlignItems: {
|
||||
type: "string",
|
||||
enum: [
|
||||
"start",
|
||||
"end",
|
||||
"center",
|
||||
"baseline",
|
||||
"stretch"
|
||||
],
|
||||
default: "stretch",
|
||||
},
|
||||
row3Content: {
|
||||
type: "array",
|
||||
items: {
|
||||
type: "reference",
|
||||
collections: [
|
||||
"markdown",
|
||||
"post_overview",
|
||||
"html",
|
||||
"headline",
|
||||
"image",
|
||||
"quote",
|
||||
"youtube_video",
|
||||
"image_gallery",
|
||||
"iframe",
|
||||
"searchable_text",
|
||||
"fullwidth_banner",
|
||||
"list",
|
||||
"link_list",
|
||||
"calendar"
|
||||
],
|
||||
},
|
||||
description: "Content components for row 3",
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user