1.0.13 • Published 2 years ago

@meluiz/next-seo v1.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Next SEO

Simple SEO managment that makes managing SEO easier in NextJS v13+ projects.

This project was based to garmeeh/next-seo.

Install

With npm

npm install --save @meluiz/next-seo

Or yarn

yarn add --save @meluiz/next-seo

Usage

// app/head.jsx

import React from "react";
import { seo } from "@meluiz/next-seo";

export default function Head() {
  return <React.Fragment>{seo.render()}</React.Fragment>;
}

Default SEO

// app/head.jsx

import React from "react";
import { seo } from "@meluiz/next-seo";

export default function Head() {
  seo.default({ ...SEOProps });

  return <React.Fragment>{seo.render()}</React.Fragment>;
}

Make SEO

// app/page.jsx

import React from "react";
import { seo } from "@meluiz/next-seo";

export default function Page({ children }) {
  seo.make({ ...SEOProps });

  return <div>{children}</div>;
}

SEO Props

The default and make method work with this bollow props:

Global

PropertyType
titlestring
titleTemplatestring
noindexboolean
nofollowboolean
robotsRobots
descriptionstring
cononicalstring
themeColorstring
metatagArray<Metatag>
linktagArray<Linktag>
twitterTwitter
opengraphOpengraph

Robots

PropertyType
nosnippetboolean
maxSnippetnumber
maxImagePreview"none", "standard" or "large"
maxVideoPreviewnumber
noarchiveboolean
unavailableAfterstring
noimageindexboolean
notranslateboolean

Book

PropertyType
authorsArray\
isbnstring
releaseDatestring
tagsArray\

Video Actor

PropertyType
rolestring
profilestring

Video

PropertyType
actorsArray\<VideoActor>
directorsArray\
writersArray\
durationnumber
releaseDatestring
tagsArray\
seriesstring

Article

PropertyType
publishedTimestring
modifiedTimestring
expirationTimestring
authorsArray\
sectionstring
tagsArray\

Profile

PropertyType
firstNamestring
lastNamestring
usernamestring
genderstring

Media

PropertyType
urlstring
typestring
titlestring
descriptionstring
siteNamestring
localestring
bookBook
videoVideo
articleArticle
profileProfile
imagesMedia[]
videosMedia[]
audioMedia[]
defaultImageHeightnumber
defaultImageWidthnumber
defaultOpenGraphVideoWidthnumber
defaultOpenGraphVideoHeightnumber

Metatag

PropertyType
namestring
propertystring
httpEquiv"content-security-policy", "content-type", default-style", "x-ua-compatible" or "refresh"
contentstring
keyOverridestring

Linktag

PropertyType
relstring
hrefstring
sizesstring
mediastring
typestring
colorstring
keyOverridestring
asstring
crossOriginstring

Twitter

PropertyType
sitestring
handlestring
cardType"summary", "summary_large_image", "app" or "player"

Opengraph

PropertyType
urlstring
typestring
titlestring
descriptionstring
siteNamestring
localestring
bookBook
videoVideo
articleArticle
profileProfile
imagesArray<Media>
videosArray<Media>
audioArray<Media>
defaultImageHeightnumber
defaultImageWidthnumber
defaultOpenGraphVideoWidthnumber
defaultOpenGraphVideoHeightnumber
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.13

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago