4.1.1 • Published 2 days ago

astro-seo-meta v4.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 days ago

🚀 Astro SEO Meta

version downloads github actions typescript makepr

This Astro component makes it easy to add tags that are relevant for search engine optimization (SEO) to your pages.

It supports Facebook, Twitter, Open Graph, and meta tags.

📦 Installation

This package is hosted on npm.

npm install astro-seo-meta

Or using yarn

yarn add astro-seo-meta

🥑 Usage

To add a base set of SEO tags in any of your Astro pages, import Astro Seo and then use the component inside the <head> section of your HTML:

---
import { Seo } from "astro-seo-meta"
---

<html lang="en">
    <head>
        <Seo
          title="My astro website"
          description="My fast astro website"
          icon="favicon.ico"
        />
    </head>

    <body>
        <h1>Hello from astro</h1>
    </body>
</html>

📖 API Reference

<Seo>

NameRequiredExampleDescription
titlefalse"My Astro website"Page title.
descriptionfalse"My blazing fast astro website"Description of the page.
keywordsfalse["website", "blog", "astro"]Array of keywords.
iconfalse"/favicon.ico"Tab icon url.
themeColorfalse"#000000"Browser theme color.
colorSchemefalse"light"Preferred color scheme.
facebook.imagefalse"/facebook.png"Facebook share image.
facebook.urlfalse"https://astro.build"Page URL.
facebook.typefalse"website"Type of resource. See all types here.
twitter.imagefalse"/twitter.png"Twitter share image.
twitter.sitefalse"@astrodotbuild"Twitter handle of publishing site.
twitter.cardfalse"summary"Format of Twitter share card. See all types here.

All of the Seo props are optional. If a prop is not provided, the associated meta tag will not be rendered.

// renders no seo tags
<Seo/>

// renders all seo tags
<Seo
    title="My Astro website"
    description="My blazing fast astro website"
    keywords={["website", "blog", "astro"]}
    icon="/favicon.ico"
    themeColor="#000000"
    colorScheme="light"
    facebook={{
        image: "/facebook.png",
        url: "https://astro.build",
        type: "website",
    }}
    twitter={{
        image: "/twitter.png",
        site: "@astrodotbuild",
        card: "summary",
    }}
/>

// renders some seo tags
<Seo
    title="My Astro website"
    description="My blazing fast astro website"
    keywords={["website", "blog", "technology"]}
/>

What does this component do, exactly?

This package adds all the necessary and SEO-relevant HTML tags inside your page's <head> tag.

Change log

Please see the changelog for more information on what has changed recently.

Acknowledgements

Astro Seo Meta is heavily inspired by Next SEO and all the amazing work the Brad Garropy is doing developing it. Thanks Brad! ❤️

Also great thanks to Jonas Schumacher Author of Astro SEO. ❤️

4.1.1

2 days ago

4.1.0

3 months ago

4.0.0

5 months ago

3.1.1

7 months ago

3.1.0

8 months ago

3.0.0

8 months ago

2.2.0

11 months ago

2.1.0

11 months ago

1.2.2

1 year ago

1.2.1

1 year ago

2.0.0

1 year ago

1.2.0

1 year ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago