mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
114696f7e2
refs #5614 and #5503 - update private blog type, including update to settings.edit - switch order of populate settings & update fixtures + populate all settings Private blog settings should not be returned by public endpoints therefore they need a type which is not `blog` or `theme`. `core` doesn't suit either, as those settings don't usually have UI To resolve this, I created a new type `private` which can be used for any setting which has a UI but should not be public data
93 lines
2.1 KiB
JSON
93 lines
2.1 KiB
JSON
{
|
|
"core": {
|
|
"databaseVersion": {
|
|
"defaultValue": "004"
|
|
},
|
|
"dbHash": {
|
|
"defaultValue": null
|
|
},
|
|
"nextUpdateCheck": {
|
|
"defaultValue": null
|
|
},
|
|
"displayUpdateNotification": {
|
|
"defaultValue": null
|
|
}
|
|
},
|
|
"blog": {
|
|
"title": {
|
|
"defaultValue": "Ghost"
|
|
},
|
|
"description": {
|
|
"defaultValue": "Just a blogging platform."
|
|
},
|
|
"logo": {
|
|
"defaultValue": ""
|
|
},
|
|
"cover": {
|
|
"defaultValue": ""
|
|
},
|
|
"defaultLang": {
|
|
"defaultValue": "en_US",
|
|
"validations": {
|
|
"isNull": false
|
|
}
|
|
},
|
|
"postsPerPage": {
|
|
"defaultValue": "5",
|
|
"validations": {
|
|
"isNull": false,
|
|
"isInt": true,
|
|
"isLength": [1, 1000]
|
|
}
|
|
},
|
|
"forceI18n": {
|
|
"defaultValue": "true",
|
|
"validations": {
|
|
"isNull": false,
|
|
"isIn": [["true", "false"]]
|
|
}
|
|
},
|
|
"permalinks": {
|
|
"defaultValue": "/:slug/",
|
|
"validations": {
|
|
"matches": "^(\/:?[a-z0-9_-]+){1,5}\/$",
|
|
"matches": "(:id|:slug|:year|:month|:day|:author)",
|
|
"notContains": "/ghost/"
|
|
}
|
|
},
|
|
"ghost_head": {
|
|
"defaultValue" : ""
|
|
},
|
|
"ghost_foot": {
|
|
"defaultValue" : ""
|
|
},
|
|
"labs": {
|
|
"defaultValue": "{}"
|
|
},
|
|
"navigation": {
|
|
"defaultValue": "[{\"label\":\"Home\", \"url\":\"/\"}]"
|
|
}
|
|
},
|
|
"theme": {
|
|
"activeTheme": {
|
|
"defaultValue": "casper"
|
|
}
|
|
},
|
|
"app": {
|
|
"activeApps": {
|
|
"defaultValue": "[]"
|
|
},
|
|
"installedApps": {
|
|
"defaultValue": "[]"
|
|
}
|
|
},
|
|
"private": {
|
|
"isPrivate": {
|
|
"defaultValue": "false"
|
|
},
|
|
"password": {
|
|
"defaultValue": ""
|
|
}
|
|
}
|
|
}
|