2.0.0 • Published 2 years ago

@kaliber/sanity-plugin-seo v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Kaliber Sanity SEO Plugin

Yoast SEO Analysis.

Installation

> yarn add @kaliber/sanity-plugin-seo

admin/sanity.json

{
  "plugins": [
    "@kaliber/sanity-plugin-seo",
    ...
  ],
  ...
}

Usage

admin/deskStructure.js

import multiLanguageConfig from 'config:@kaliber/sanity-plugin-multi-language'
import { SeoAnalysis, typeHasSeo } from '@kaliber/sanity-plugin-seo'

export function getDefaultDocumentNode({ schemaType }) {
  return S.document().views([
    S.view.form(),
    ...(typeHasSeo(schemaType) ? [S.view.component(SeoAnalysis).options({ multiLanguage: multiLanguageConfig }).title('SEO')] : []),
  ])
}

schema/documents/pagina.js

import { withSeo } from '@kaliber/sanity-plugin-seo'

export const pagina = withSeo()({
  type: 'document',
  name: 'pagina',
  title: 'Pagina',
  fields: [
    ...
  ],
})

Development

> yarn
> yarn link
> yarn watch
admin/> yarn link @kaliber/sanity-plugin-seo

Publish

yarn publish
git push
git push --tags
1.0.0

2 years ago

2.0.0

2 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago