Bricks Schema 中文文档:Bricks 页面设置

📄 原始资料 (已截断)  |  展开查看原始 JSON(page.json){ “$schema”: “https://json-schema.org/draft/2020-12/schema”, “$id”: “bricks://settings/page”, “schemaVersion”: “2.3”, “type”: “object”, “title”: “Bricks Page settings”, “description”: “Schema for Bricks page settings controls”, “settings”: { “bodyClas…

📄 原始资料 (已截断)  |  展开查看原始 JSON(page.json)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "bricks://settings/page",
  "schemaVersion": "2.3",
  "type": "object",
  "title": "Bricks Page settings",
  "description": "Schema for Bricks page settings controls",
  "settings": {
    "bodyClasses": {
      "label": "CSS classes",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "text",
      "labelZh": "CSS 类"
    },
    "customCss": {
      "label": "Custom CSS",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "code",
      "labelZh": "自定义 CSS"
    },
    "customScriptsBodyFooter": {
      "label": "Body (footer) scripts",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "code",
      "labelZh": "正文(页脚)脚本"
    },
    "customScriptsBodyHeader": {
      "label": "Body (header) scripts",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "code",
      "labelZh": "正文(页头)脚本"
    },
    "customScriptsHeader": {
      "label": "Header scripts",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "code",
      "labelZh": "页头脚本"
    },
    "disableLazyLoad": {
      "label": "Disable lazy load",
      "valueSchema": {
        "type": "boolean"
      },
      "controlType": "checkbox",
      "labelZh": "禁用懒加载"
    },
    "documentTitle": {
      "label": "Document title",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "text",
      "labelZh": "文档标题"
    },
    "footerDisabled": {
      "label": "Disable footer",
      "valueSchema": {
        "type": "boolean"
      },
      "controlType": "checkbox",
      "labelZh": "禁用页脚"
    },
    "headerDisabled": {
      "label": "Disable header",
      "valueSchema": {
        "type": "boolean"
      },
      "controlType": "checkbox",
      "labelZh": "禁用页头"
    },
    "metaDescription": {
      "label": "Meta description",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "textarea",
      "labelZh": "Meta 描述"
    },
    "metaKeywords": {
      "label": "Meta keywords",
      "valueSchema": {
        "type": "string"
      },
      "controlType": "text",
      "labelZh": "Meta 关键词"
    },
    "metaRobots": {
      "label": "Meta robots",
      "multiple": true,
      "options": {
        "noindex": "noindex",
        "nofollow": "nofollow",
        "none": "none",
        "noarchive": "noarchive",
        "nocache": "nocache",
        "nosnippet": "nosnippet",
        "notranslate": "notranslate",
        "noimageindex": "noimageindex"
      },
      "valueSchema": {
        "oneOf": [
          {
            "type": "string",
            "description": "Single selection",
            "descriptionZh": "单选。"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Multiple selection",
            "descriptionZh": "多选。"
          }
        ]
      },
      "controlType": "select",
      "labelZh": "Meta robots"
    },
    "onePageNavigation": {
      "label": "Show navigation",
      "valueSchema": {
        "type": "boolean"
      },
      "controlType": "checkbox",
      "labelZh": "显示导航"
    },
    "onePageNavigationItemBorder": {
      "label": "Border",
      "css": [
        {
          "property": "border",
          "selector": "#bricks-one-page-navigation a"
        }
      ],
      "valueSchema": {
        "type": "object",
        "description": "Border settings",
        "properties": {
          "width": {
            "type": "object",
            "description": "Spacing value with directional properties",
            "properties": {
              "top": {
                "type": "string",
                "description": "Top spacing value with unit",
                "descriptionZh": "顶部间距值(带单位)。"
              },
              "right": {
                "type": "string",
                "description": "Right spacing value with unit",
                "descriptionZh": "右侧间距值(带单位)。"
              },
              "bottom": {
                "type": "string",
                "description": "Bottom spacing value with unit",
                "descriptionZh": "底部间距值(带单位)。"
              },
              "left": {
                "type": "string",
                "description": "Left spacing value with unit",
                "descriptionZh": "左侧间距值(带单位)。"
              }
            },
            "additionalProperties": false,
            "descriptionZh": "带方向属性的间距值。"
          },
          "style": {
            "type": "string",
            "enum": [
              "none",
              "solid",
              "dashed",
              "dotted",
              "double",
              "groove",
              "ridge",
              "inset",
              "outset"
            ]
          },
          "color": {
            "description": "Color value in various formats",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "hex": {
                    "type": "string",
                    "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
                  }
                },
                "required": [
                  "hex"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "rgb": {
                    "type": "string",
                    "pattern": "^rgba?\\("
                  }
                },
                "required": [
                  "rgb"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "hsl": {
                    "type": "string",
                    "pattern": "^hsla?\\("
                  }
                },
                "required": [
                  "hsl"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "raw": {
                    "type": "string",
                    "description": "Raw color value or CSS variable",
                    "descriptionZh": "原始颜色值或 CSS 变量。"
                  }
                },
                "required": [
                  "raw"
                ]
              }
            ],
            "descriptionZh": "各种格式的颜色值。"
          },
          "radius": {
            "type": "object",
            "description": "Spacing value with directional properties",
            "properties": {
              "top": {
                "type": "string",
                "description": "Top spacing value with unit",
                "descriptionZh": "顶部间距值(带单位)。"
              },
              "right": {
                "type": "string",
                "description": "Right spacing value with unit",
                "descriptionZh": "右侧间距值(带单位)。"
              },
              "bottom": {
                "type": "string",
                "description": "Bottom spacing value with unit",
                "descriptionZh": "底部间距值(带单位)。"
              },
              "left": {
                "type": "string",
                "description": "Left spacing value with unit",
                "descriptionZh": "左侧间距值(带单位)。"
              }
            },
            "additionalProperties": false,
            "descriptionZh": "带方向属性的间距值。"
          }
        },
        "descriptionZh": "边框设置。"
      },
      "controlType": "border",
      "labelZh": "边框"
    },
    "onePageNavigationItemBorderActive": {
      "label": "Border",
      "css": [
        {
          "property": "border",
          "selector": "#bricks-one-page-navigation .active"
        }
      ],
      "valueSchema": {
        "type": "object",
        "description": "Border settings",
        "properties": {
          "width": {
            "type": "object",
            "description": "Spacing value with directional properties",
          

... (内容过长已截断,完整 JSON 见原始文件)

前言

Bricks 页面设置控件的 schema。

基本信息

  • 英文名称Bricks Page settings
  • 中文名称:Bricks 页面设置
  • Schema IDbricks://settings/page
  • Schema 版本2.3
  • 类型object

设置项

  • bodyClasses — CSS 类 (text)
  • customCss — 自定义 CSS (code)
  • customScriptsBodyFooter — 正文(页脚)脚本 (code)
  • customScriptsBodyHeader — 正文(页头)脚本 (code)
  • customScriptsHeader — 页头脚本 (code)
  • disableLazyLoad — 禁用懒加载 (checkbox)
  • documentTitle — 文档标题 (text)
  • footerDisabled — 禁用页脚 (checkbox)
  • headerDisabled — 禁用页头 (checkbox)
  • metaDescription — Meta 描述 (textarea)
  • metaKeywords — Meta 关键词 (text)
  • metaRobots — Meta robots (select)
  • onePageNavigation — 显示导航 (checkbox)
  • onePageNavigationItemBorder — 边框 (border)
  • onePageNavigationItemBorderActive — 边框 (border)
  • onePageNavigationItemBoxShadow — 盒子阴影 (box-shadow)
  • onePageNavigationItemBoxShadowActive — 盒子阴影 (box-shadow)
  • onePageNavigationItemColor — 颜色 (color)
  • onePageNavigationItemColorActive — 颜色 (color)
  • onePageNavigationItemHeight — 高度 (number)
  • onePageNavigationItemHeightActive — 高度 (number)
  • onePageNavigationItemSpacing — 间距 (number)
  • onePageNavigationItemWidth — 宽度 (number)
  • onePageNavigationItemWidthActive — 宽度 (number)
  • popupDisabled — 禁用弹窗 (checkbox)
  • postName — 固定链接 (text)
  • postTitle — 标题 (text)
  • scrollMargin — 外边距 (number)
  • scrollPadding — 内边距 (number)
  • scrollSnapAlign — 对齐 (select)
  • scrollSnapSelector — 吸附元素选择器 (text)
  • scrollSnapStop — 停止 (select)
  • scrollSnapType — 类型 (select)
  • sharingDescription — 描述 (text)
  • sharingImage — 图片 (image)
  • sharingTitle — 标题 (text)

补充说明

更多细节可参考 Bricks 官方 Academy 文档