0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core
Kevin Ansfield b8e2bb7b6d Allowed custom theme settings to be passed through preview data
refs https://github.com/TryGhost/Team/issues/1097

- added `customThemeSettingKeys` as an argument to `preview.handle()` because we can't know which keys should be allowed through up-front
- added `custom` as a supported setting in the preview header data
  - `custom` should be a JSON object containing any custom theme settings
  - we parse the object but only set properties on `@custom` that are known custom theme setting keys
  - if parsing fails or it's not an object then no custom data is set
- updated `updateLocalTemplateOptions()` to pull `.custom` off of the preview data and pass it through so it's accessible on `@custom` as an override to the saved custom data
2021-09-30 13:23:39 +01:00
..
client@1e0d0a066d Updated Admin to v4.16.0 2021-09-23 16:04:56 +01:00
frontend Allowed custom theme settings to be passed through preview data 2021-09-30 13:23:39 +01:00
server Refactored ensure settings module into a class with DI 2021-09-29 20:56:55 +02:00
shared Added portal redirect for first version of offers 2021-09-28 18:34:15 +05:30
app.js
boot.js Moved routing setting hash calculation to backend 2021-09-28 04:59:41 +13:00
bridge.js Removed unnecessary error parameter in bridge 2021-09-23 18:39:43 +02:00