From 3afe2b16de4b365ed0fab37915375ff03642ac77 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Thu, 26 Mar 2020 19:23:31 +0200 Subject: [PATCH] Feat: add logo to inference for thumbnails (#3481) Co-authored-by: Max Metral --- .../netlify-cms-core/src/constants/fieldInference.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/netlify-cms-core/src/constants/fieldInference.js b/packages/netlify-cms-core/src/constants/fieldInference.js index 7aa2002f..223183a3 100644 --- a/packages/netlify-cms-core/src/constants/fieldInference.js +++ b/packages/netlify-cms-core/src/constants/fieldInference.js @@ -58,7 +58,17 @@ export const INFERABLE_FIELDS = { image: { type: 'image', secondaryTypes: [], - synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar', 'photo', 'cover', 'hero'], + synonyms: [ + 'image', + 'thumbnail', + 'thumb', + 'picture', + 'avatar', + 'photo', + 'cover', + 'hero', + 'logo', + ], defaultPreview: value => value, fallbackToFirstField: false, showError: false,