Socket
Socket
Sign inDemoInstall

@limeyfy/next-seo

Package Overview
Dependencies
91
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @limeyfy/next-seo

A library to help with easily maintain good SEO in react. Made by "https://github.com/notlimey"


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Next Better SEO

Maintaining good seo in next is not easy in itself. You can always use head to help you but understanding all the meta tags and so on can be hard. Therefore I made a npm package to help with easily maintaining good seo.

Getting started

npm i --save @limeyfy/next-seo
// or
yarn add @limeyfy/next-seo

Example

import '../common/styles/globals.scss'
import type { AppProps } from 'next/app'
import { BetterHead } from '@limeyfy/next-seo'

function MyApp({ Component, pageProps }: AppProps) {
  return (
    <>
      <BetterHead 
        title='Title'
        subTitle='Limeyfy'
      />
      <Component {...pageProps} />
    </>
  )
}

export default MyApp

Test SEO

import '../common/styles/globals.scss'
import type { AppProps } from 'next/app'
import { BetterHead, useSeo } from '@limeyfy/next-seo'

function MyApp({ Component, pageProps }: AppProps) {

  const { result } = useSeo();

  console.log(result())

  return (
    <>
      <BetterHead 
        title='Title'
        subTitle='Limeyfy'
      />
      <Component {...pageProps} />
    </>
  )
}

export default MyApp

Another example

import '../common/styles/globals.scss'
import type { AppProps } from 'next/app'
import { BetterHead } from '@limeyfy/next-seo'

function MyApp({ Component, pageProps }: AppProps) {
  return (
    <>
      <BetterHead 
        title='Title'
        subTitle='Limeyfy'
      >
        <meta name='og:country-name' content='NORWAY' />
      </BetterHead>
      <Component {...pageProps} />
    </>
  )
}

export default MyApp

Params

  • title?: string;
  • subTitle?: string;
  • title?: string;
  • subTitle?: string;
  • titleDivider?: string;
  • keywords?: string;
  • themeColor?: string;
  • description?: string;
  • subject?: string;
  • copyright?: string;
  • language?: string;
  • robots?: string;
  • revised?: string;
  • topic?: string;
  • summary?: string;
  • Classification?: string;
  • author?: string;
  • replyTo?: string;
  • owner?: string;
  • url?: string;
  • identifierURL?: string;
  • image?: string;
  • favIcon?: string;
  • children?: React.ReactNode;

Keywords

FAQs

Last updated on 03 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc