Skip to content

Commit

Permalink
Merge branch 'malj/750' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Jul 19, 2024
2 parents 134c9c1 + 9a4e572 commit b2557a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sanityv3/schemas/objects/titleAndMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export default {
title: 'Fields for title and description meta',
name: 'titleAndMeta',
type: 'object',
validation: (Rule: Rule) => [Rule.required().warning('Please pay attention to SEO')],
validation: (Rule: Rule) => [
Rule.required().warning('It is recommended to complete the SEO fields for better search visibility'),
],
fields: [
{
name: 'documentTitle',
Expand All @@ -37,13 +39,13 @@ export default {
type: 'string',

validation: (Rule: SchemaType.ValidationRule) =>
Rule.required().warning('The document title is very important for SEO'),
Rule.required().warning('Ensure the document title is optimized for SEO'),
},
{
name: 'metaDescription',
title: 'Meta description',
validation: (Rule: Rule) => [
Rule.required().warning('Meta description is important for SEO'),
Rule.required().warning('Provide an SEO-friendly meta description'),
Rule.max(160).warning('Google recommends max. 160 chars'),
],
description: `Meta descriptions are HTML attributes that provide concise summaries of webpages.
Expand Down

0 comments on commit b2557a1

Please sign in to comment.