mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Removed hardcoded accent color fallbacks (#12813)
refs https://github.com/TryGhost/Team/issues/536 From 4.0, we ensure and require that accent colour is always set. This change removes hardcoded accent color fallbacks to avoid confusion as well as cause accidental fallback that is undesired causing themes to look different
This commit is contained in:
parent
bab16a4491
commit
82bb466316
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ function restrictedCta(options) {
|
|||
options = options || {};
|
||||
options.data = options.data || {};
|
||||
_.merge(this, {
|
||||
accentColor: (options.data.site && options.data.site.accent_color) || '#15171A'
|
||||
accentColor: (options.data.site && options.data.site.accent_color)
|
||||
});
|
||||
const data = createFrame(options.data);
|
||||
return templates.execute('content-cta', this, {data});
|
||||
|
|
|
@ -133,7 +133,7 @@ function createApiInstance(config) {
|
|||
const siteUrl = urlUtils.urlFor('home', true);
|
||||
const domain = urlUtils.urlFor('home', true).match(new RegExp('^https?://([^/:?#]+)(?:[/:?#]|$)', 'i'));
|
||||
const siteDomain = (domain && domain[1]);
|
||||
const accentColor = settingsCache.get('accent_color') || '#15212A';
|
||||
const accentColor = settingsCache.get('accent_color');
|
||||
switch (type) {
|
||||
case 'subscribe':
|
||||
return subscribeEmail({url, email, siteTitle, accentColor, siteDomain, siteUrl});
|
||||
|
|
Loading…
Add table
Reference in a new issue