Seo   Badge License

Generate schema markup to improve your site's SEO.


Getting Started

*Import the seo module into your Deno project

import { generateSchema } from "https://deno.land/x/seo";

  const article: ArticleProp = {
    author: 'Bob Sacamano',
    type: 'NewsArticle',
    url: 'https://deno.land/x/seo',
    datePublished: '31.01.2023',
    image: ['https://docs.deno.com/deno-looking-up.svg']
  }
  const mockContext = 'https://schema.org';
  const articleSchemaMarkup = generateMarkup('article', article);

How does it work?

SEO allows you retrieve schema markup that can be used within json+ld script tags

Article


Person

Why is this useful?

This module exports the related types for each type of schema. The purpose of the project is provide type checking for commonly used structured data markup and a convent way to generate the markup, in alignment with the guidelines from search engines and schema.org.

Introduction to structured data markup in Google Search https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data

schema.org https://schema.org/

Unit Tests

Unit tests can be run using:

deno test

Distribution

The module is published on https://deno.land/x as a Deno Third Party Module

Module page: https://deno.land/x/seo