UNPKG

sanity-plugin-seo

Version:

The Sanity SEO Field Plugin simplifies the process of generating SEO fields for various types of content. It enhances structured data, making your content more accessible and understandable for search engines, ultimately improving your site's visibility a

65 lines (62 loc) 1.38 kB
import { defineType } from "sanity"; import SEOTitleFeedback from "../components/SEOTitleFeedback"; import SEODescriptionFeedback from "../components/SEODescriptionFeedback"; const schema = defineType({ title: "Seo MetaFields", name: "seoMetaFields", type: "object", fields: [ { name: "nofollowAttributes", title: "Noindex", type: "boolean", initialValue: false, description: "To prevent a URL from being indexed, you'll also need to select the true Noindex on the tag.", }, { name: "metaTitle", title: "Title", type: "string", components: { input: SEOTitleFeedback, }, }, { name: "metaDescription", title: "Description", type: "string", components: { input: SEODescriptionFeedback, }, }, { name: "metaImage", title: "Meta Image", type: "image", }, { name: "seoKeywords", title: "Keywords", type: "array", of: [{ type: "string" }], }, { name: "openGraph", title: "Open Graph", type: "openGraph", }, { name: "additionalMetaTags", title: "Additional Meta Tags", type: "array", of: [{ type: "metaTag" }], }, { name: "twitter", title: "Twitter", type: "twitter", }, ], }); export default schema;