Seo
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',
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
Unit Tests
Unit tests can be run using:
deno test