Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Xillians committed Oct 13, 2023
1 parent edb3e1b commit a6a3302
Showing 1 changed file with 48 additions and 43 deletions.
91 changes: 48 additions & 43 deletions schemas/objects/meta-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,61 @@ export const Metadata = defineType({
type: 'object',
fields: [
{
name: 'searchEngine',
type: 'searchEngine',
validation: (Rule: { required: () => any; }) => Rule.required(),
name: 'searchEngine',
type: 'searchEngine',
validation: (Rule: { required: () => any }) => Rule.required(),

Check failure on line 11 in schemas/objects/meta-data.ts

View workflow job for this annotation

GitHub Actions / Lint, format, test and build

Unexpected any. Specify a different type

Check failure on line 11 in schemas/objects/meta-data.ts

View workflow job for this annotation

GitHub Actions / Lint, format, test and build

Unsafe return of an `any` typed value
},
{
name: 'socialMedia',
type: 'socialMedia',
validation: (Rule: { required: () => any; }) => Rule.required(),
name: 'socialMedia',
type: 'socialMedia',
validation: (Rule: { required: () => any }) => Rule.required(),

Check failure on line 16 in schemas/objects/meta-data.ts

View workflow job for this annotation

GitHub Actions / Lint, format, test and build

Unexpected any. Specify a different type

Check failure on line 16 in schemas/objects/meta-data.ts

View workflow job for this annotation

GitHub Actions / Lint, format, test and build

Unsafe return of an `any` typed value
},
],
});

export const searchEngine = defineType({
name: 'searchEngine',
title: 'Search engine',
type: 'object',
fields: [
{
name: 'Title',
type: 'string',
description: 'search engine title. The ideal length is 50–60 characters. When exceeding this limit, search engines will truncate the title.',
},
{
name: 'Description',
type: 'string',
description: 'search engine description. minimum length is 70 characters, and ideal is between 70 to 155 characters. When exceeding this limit, search engines will truncate the description.',
}
]
name: 'searchEngine',
title: 'Search engine',
type: 'object',
fields: [
{
name: 'Title',
type: 'string',
description:
'search engine title. The ideal length is 50–60 characters. When exceeding this limit, search engines will truncate the title.',
},
{
name: 'Description',
type: 'string',
description:
'search engine description. minimum length is 70 characters, and ideal is between 70 to 155 characters. When exceeding this limit, search engines will truncate the description.',
},
],
});

export const socialMedia = defineType({
name: 'socialMedia',
title: 'Social media',
type: 'object',
fields: [
{
name: 'Title',
type: 'string',
description: 'social media title. The ideal length is 47 characters. When exceeding this limit, social media will truncate the title. Linkedin will truncate the title at 119 characters.',
},
{
name: 'Description',
type: 'string',
description: 'social media description. Shuold not exceed 85 characters to fit most platforms.',
},
{
name: 'Images',
type: 'array',
of: [{ type: 'image' }],
description: 'social media image. The ideal size is 1200 x 630 pixels. When proviing multiple images, the first will be used as the main image. Some platforms will allow user to choose which image to use.',
}
]
});
name: 'socialMedia',
title: 'Social media',
type: 'object',
fields: [
{
name: 'Title',
type: 'string',
description:
'social media title. The ideal length is 47 characters. When exceeding this limit, social media will truncate the title. Linkedin will truncate the title at 119 characters.',
},
{
name: 'Description',
type: 'string',
description:
'social media description. Shuold not exceed 85 characters to fit most platforms.',
},
{
name: 'Images',
type: 'array',
of: [{ type: 'image' }],
description:
'social media image. The ideal size is 1200 x 630 pixels. When proviing multiple images, the first will be used as the main image. Some platforms will allow user to choose which image to use.',
},
],
});

0 comments on commit a6a3302

Please sign in to comment.