Added more synonyms
This commit is contained in:
parent
ef9f499b42
commit
78a9ac0f4b
@ -5,7 +5,7 @@ export const INFERABLE_FIELDS = {
|
||||
title: {
|
||||
type: 'string',
|
||||
secondaryTypes: [],
|
||||
synonyms: ['title', 'name', 'label', 'headline'],
|
||||
synonyms: ['title', 'name', 'label', 'headline', 'header'],
|
||||
defaultPreview: value => <h1>{ value }</h1>,
|
||||
fallbackToFirstField: true,
|
||||
showError: true,
|
||||
@ -13,7 +13,7 @@ export const INFERABLE_FIELDS = {
|
||||
shortTitle: {
|
||||
type: 'string',
|
||||
secondaryTypes: [],
|
||||
synonyms: ['short_title', 'shortTitle'],
|
||||
synonyms: ['short_title', 'shortTitle', 'short'],
|
||||
defaultPreview: value => <h2>{ value }</h2>,
|
||||
fallbackToFirstField: false,
|
||||
showError: false,
|
||||
@ -21,7 +21,7 @@ export const INFERABLE_FIELDS = {
|
||||
author: {
|
||||
type: 'string',
|
||||
secondaryTypes: [],
|
||||
synonyms: ['author', 'name', 'by'],
|
||||
synonyms: ['author', 'name', 'by', 'byline', 'owner'],
|
||||
defaultPreview: value => <strong>{ value }</strong>,
|
||||
fallbackToFirstField: false,
|
||||
showError: false,
|
||||
@ -29,7 +29,7 @@ export const INFERABLE_FIELDS = {
|
||||
description: {
|
||||
type: 'string',
|
||||
secondaryTypes: ['text', 'markdown'],
|
||||
synonyms: ['shortDescription', 'short_description', 'shortdescription', 'description', 'intro', 'introduction', 'brief', 'body', 'content', 'biography', 'bio'],
|
||||
synonyms: ['shortDescription', 'short_description', 'shortdescription', 'description', 'intro', 'introduction', 'brief', 'content', 'biography', 'bio', 'summary'],
|
||||
defaultPreview: value => value,
|
||||
fallbackToFirstField: false,
|
||||
showError: false,
|
||||
@ -37,7 +37,7 @@ export const INFERABLE_FIELDS = {
|
||||
image: {
|
||||
type: 'image',
|
||||
secondaryTypes: [],
|
||||
synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar'],
|
||||
synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar', 'photo'],
|
||||
defaultPreview: value => value,
|
||||
fallbackToFirstField: false,
|
||||
showError: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user