@pcode-at/tinacms-seo
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

TinaCMS SEO

Mission and Vision

Our vision of this package is to create the one stop shop for all your SEO concerns using TinaCMS, similar to the Wordpress Plugin Yoast.

Getting started

Follow these 5 steps to include tinacms-seo in your project:

  1. Install the package:
npm install @pcode-at/tinacms-seo

or

yarn add @pcode-at/tinacms-seo

depending on your package manager.

NOTE: If you are using yarn (or an npm version that doesn't install peer dependencies automatically) then you have to install used peer dependencies by yourself manually:

yarn add next-seo
  1. Import the required schema parts from the package:
import { defaultSeoPageProps, seoPageProps } from "@pcode-at/tinacms-seo";
  1. Include it in your schema:
  ...
  {
      label: "Pages",
      name: "pages",
      path: "content/pages",
      fields: [
        seoPageProps,
        {
          ... fields
        },
      ],
      ...
    },
  1. Congratulations! 🎉 Now you should see an editable SEO object in your sidebar:

image

image

Expert mode

For usability reasons we do not expose all fields in defaultSeoPageProps and seoPageProps. If you have a usecase for full control about all seo relevant fields you can import expertDefaultSeoPageProps and expertSeoPageProps.

Readme

Keywords

none

Package Sidebar

Install

npm i @pcode-at/tinacms-seo

Weekly Downloads

115

Version

2.0.0

License

MIT

Unpacked Size

40.3 kB

Total Files

12

Last publish

Collaborators

  • bja-pcode
  • d-woegerbauer
  • pcode_at