πŸš€Β Β 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 -->
  <SEO
    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}
    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.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.