Skip to content

Sanity schematypes for managing head/meta tags on your website

License

Notifications You must be signed in to change notification settings

AndreBClark/cosmic-schemas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmic-schemas

Convenient Sanity schematypes
Explore the docs »
· Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Sanity Meta Sanity schemas for html meta and og tags

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Installation

Install the package by using your prefered package manager

  • npm

    npm install sanity-plugin-sitemeta
  • yarn

    yarn add sanity-plugin-sitemeta

Usage

Usage in sanity.config.ts (or .js)

import {defineConfig} from 'sanity'
import {siteMeta} from 'sanity-plugin-sitemeta'

export default defineConfig({
  
  // ...
  plugins: [
      //...
      siteMeta(),
      //...
  ],
})

now you can use the following types in your sanity schemas:

  • documents: siteMeta
  • objects: openGraph, manifest, meta, siteSettings, locale, googleAnalytics

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

About

Sanity schematypes for managing head/meta tags on your website

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •