mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
41c93f982d
refs https://github.com/TryGhost/Team/issues/509 - During 3.x we standardised on "lang" instead of "default_locale" for the site setting, which was an assumption based on an earlier change to @site.lang to make <html lang="@site.lang"> read nicer. This was a mistake as the field represents more than "lang" its a "locale". With this changeset we introduce a transition to use "locale" name for the value instead of "lang" - Adds `@site.locale" value in as well as new 'locale' property in Content API's response - "lang" will be considered as deprecated starting with API v4 and will be dropped completely with API v5
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
/**
|
|
* The settings with type "site" were originally meant to be public
|
|
* This has been misused - unsplash and slack are incorrectly stored there
|
|
* https://github.com/TryGhost/Ghost/issues/10318
|
|
*
|
|
* This file acts as a new whitelist for "public" settings
|
|
*/
|
|
|
|
module.exports = {
|
|
title: 'title',
|
|
description: 'description',
|
|
logo: 'logo',
|
|
icon: 'icon',
|
|
accent_color: 'accent_color',
|
|
cover_image: 'cover_image',
|
|
facebook: 'facebook',
|
|
twitter: 'twitter',
|
|
lang: 'lang',
|
|
locale: 'lang',
|
|
timezone: 'timezone',
|
|
codeinjection_head: 'codeinjection_head',
|
|
codeinjection_foot: 'codeinjection_foot',
|
|
navigation: 'navigation',
|
|
secondary_navigation: 'secondary_navigation',
|
|
meta_title: 'meta_title',
|
|
meta_description: 'meta_description',
|
|
og_image: 'og_image',
|
|
og_title: 'og_title',
|
|
og_description: 'og_description',
|
|
twitter_image: 'twitter_image',
|
|
twitter_title: 'twitter_title',
|
|
twitter_description: 'twitter_description',
|
|
members_support_address: 'members_support_address'
|
|
};
|