mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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`.
This commit is contained in:
parent
31ee7bb4e1
commit
1bb9d4ff00
1 changed files with 12 additions and 2 deletions
|
@ -15,10 +15,20 @@
|
||||||
},
|
},
|
||||||
"blog": {
|
"blog": {
|
||||||
"title": {
|
"title": {
|
||||||
"defaultValue": "Ghost"
|
"defaultValue": "Ghost",
|
||||||
|
"validations": {
|
||||||
|
"isLength": {
|
||||||
|
"max": 150
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"defaultValue": "The professional publishing platform"
|
"defaultValue": "The professional publishing platform",
|
||||||
|
"validations": {
|
||||||
|
"isLength": {
|
||||||
|
"max": 200
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"logo": {
|
"logo": {
|
||||||
"defaultValue": "https://casper.ghost.org/v1.0.0/images/ghost-logo.svg"
|
"defaultValue": "https://casper.ghost.org/v1.0.0/images/ghost-logo.svg"
|
||||||
|
|
Loading…
Add table
Reference in a new issue