Ghost/core/server/data/schema/default-settings.json
Aileen Nowak 1bb9d4ff00 Set soft limits for blog title and description (#9250)
refs #8143

Add max length validations to settings:
- `blog.title`: 150 chars
- `blog.description`: 200 chars

The `validateSettings` fn in our validations checks for existing `validations` properties in our `default-settings.json` file, similar to other tables in our `schema.js`.
2017-11-16 13:58:22 +01:00

123 lines
3.0 KiB
JSON

{
"core": {
"db_hash": {
"defaultValue": null
},
"next_update_check": {
"defaultValue": null
},
"display_update_notification": {
"defaultValue": null
},
"seen_notifications": {
"defaultValue": "[]"
}
},
"blog": {
"title": {
"defaultValue": "Ghost",
"validations": {
"isLength": {
"max": 150
}
}
},
"description": {
"defaultValue": "The professional publishing platform",
"validations": {
"isLength": {
"max": 200
}
}
},
"logo": {
"defaultValue": "https://casper.ghost.org/v1.0.0/images/ghost-logo.svg"
},
"cover_image": {
"defaultValue": "https://casper.ghost.org/v1.0.0/images/blog-cover.jpg"
},
"icon": {
"defaultValue": ""
},
"default_locale": {
"defaultValue": "en",
"validations": {
"isEmpty": false
}
},
"active_timezone": {
"defaultValue": "Etc/UTC",
"validations": {
"isTimezone": true,
"isEmpty": false
}
},
"force_i18n": {
"defaultValue": "true",
"validations": {
"isEmpty": false,
"isIn": [["true", "false"]]
}
},
"permalinks": {
"defaultValue": "/:slug/",
"validations": {
"matches": "^(\/:?[a-z0-9_-]+){1,5}\/$",
"matches": "(:id|:slug|:year|:month|:day|:author|:primary_tag)",
"notContains": "/ghost/"
}
},
"amp": {
"defaultValue" : "true"
},
"ghost_head": {
"defaultValue" : ""
},
"ghost_foot": {
"defaultValue" : ""
},
"facebook": {
"defaultValue" : ""
},
"twitter": {
"defaultValue" : ""
},
"labs": {
"defaultValue": "{\"publicAPI\": true}"
},
"navigation": {
"defaultValue": "[{\"label\":\"Home\", \"url\":\"/\"}]"
},
"slack": {
"defaultValue": "[{\"url\":\"\"}]"
},
"unsplash": {
"defaultValue": "{\"isActive\": true}"
}
},
"theme": {
"active_theme": {
"defaultValue": "casper"
}
},
"app": {
"active_apps": {
"defaultValue": "[]"
},
"installed_apps": {
"defaultValue": "[]"
}
},
"private": {
"is_private": {
"defaultValue": "false"
},
"password": {
"defaultValue": ""
},
"public_hash": {
"defaultValue": null
}
}
}