🚀  Astro — SEO metadata


Bare minimum SEO meta tags to make most social networks and Google engine happy.

Keywords:

  • astro
  • astro-component
  • google
  • opengraph
  • search-engine
  • optimization
  • html
  • seo

🚀  Astro — SEO metadata

NPM Downloads ISC License PRs Welcome
Astro TypeScript Prettier EditorConfig ESLint

Bare minimum SEO meta tags to make most social networks and Google engine happy.

📦  Installation

pnpm i astro-seo-metadata

🛠  Usage

---
import { SEOMetadata } from 'astro-seo-metadata';
// ...
---
<!-- ... -->
<head>
  <!-- Place component inside `HEAD` tag -->

  <!-- All properties are optional -->
  <SEOMetadata
    siteName={'Le Website'}
    title={'Le cool title'}
    description={'Le insightful description'}
    image={'http://example.com/the_image_url-preferably_absolute.jpg'}
    favicon={'/favicon.svg'}
    author="Julian Cataldo"
    copyright="ISC"
    astroSitemap={true}
    canonicalUrl={Astro.url.toString()}
    type={'website'}
    astroGenerator={true}
  />

  <!-- ... -->
</head>

In <head>:

<!-- SEO -->

<link
  rel="canonical"
  href="https://code.juliancataldo.com/component/astro-seo"
/>

<meta property="og:type" content="website" />

<meta name="apple-mobile-web-app-title" content="Julian's Web Garden" />
<meta property="og:site_name" content="Julian's Web Garden" />

<title>
  🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social
  networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO
</title>

<meta
  property="og:title"
  content="🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO"
/>
<meta
  name="twitter:title"
  content="🚀&nbsp;&nbsp;Astro — SEO | Bare minimum SEO meta tags to make most social networks and Google engine happy. | 🚀&nbsp;&nbsp;Astro — SEO"
/>

<meta
  property="og:image:alt"
  content="Building blocks for making progressive and future-proof websites.
Components collection features Astro, HTML, SCSS, JS, TS…
Configurations features ESLint, Prettier, Stylelint…"
/>
<meta
  name="description"
  property="og:description"
  content="Building blocks for making progressive and future-proof websites.
Components collection features Astro, HTML, SCSS, JS, TS…
Configurations features ESLint, Prettier, Stylelint…"
/>
<meta
  name="twitter:description"
  content="Building blocks for making progressive and future-proof websites.
Components collection features Astro, HTML, SCSS, JS, TS…
Configurations features ESLint, Prettier, Stylelint…"
/>

<meta property="og:image" content="https://code.juliancataldo.com/poster.png" />
<meta
  name="twitter:image:src"
  content="https://code.juliancataldo.com/poster.png"
/>
<meta name="twitter:card" content="summary_large_image" />

<!--  -->

<meta name="author" content="Julian Cataldo" />

<meta name="copyright" content="ISC" />

<!--  -->

<link rel="sitemap" type="application/xml" href="/sitemap-index.xml" />

<meta name="generator" content="Astro v1.0.6" />

<!-- /SEO -->

Changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.5.5 (2023-01-21)

Bug Fixes

  • parser bug, need to split group in braces (36704f9)

0.5.4 (2023-01-05)

Note: Version bump only for package astro-seo-metadata

0.5.3 (2022-11-19)

Bug Fixes

0.5.2 (2022-10-17)

Bug Fixes

  • remove package prefix, simplify import method (73bd31b)

0.14.1 (2022-10-12)

Bug Fixes

  • comment breaking extractor (06dd4f1)

0.14.0 (2022-10-12)

Features

  • copyright, sitemap, favicon, generator… (b6baec4)

0.13.3 (2022-09-22)

Note: Version bump only for package @julian_cataldo/astro-seo

0.13.2 (2022-08-20)

Note: Version bump only for package @julian_cataldo/astro-seo

0.13.1 (2022-07-31)

Note: Version bump only for package @julian_cataldo/astro-seo

0.13.0 (2022-07-24)

Features

  • remove mobile web capable (87d1c22)

0.12.1 (2022-07-24)

Bug Fixes

  • correct meta keywords for seo (e61291d)
  • making twitter compatible robots happy (8eadeea)

0.12.0 (2022-07-18)

Features

  • add default values for seo (3e785e9)
  • ts properties extractor for docs (9a8e65e)

0.11.0 (2022-06-28)

Features

  • better defaults properties (cc55aec)

0.10.12 (2022-06-26)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.11 (2022-06-25)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.10 (2022-06-22)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.9 (2022-06-22)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.8 (2022-06-22)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.7 (2022-06-21)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.6 (2022-06-20)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.5 (2022-06-20)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.4 (2022-06-19)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.3 (2022-06-19)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.2 (2022-06-19)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.1 (2022-06-19)

Note: Version bump only for package @julian_cataldo/astro-seo

0.10.0 (2022-06-19)

Features

...

⚠️  Having an issue? / 🗣   Wanna share feedback or suggestion?

✍️  Open an Issue or a Pull Request   on GitHub -or-   Contact me   on my Website.