Easily generate SEO metadata for Svelte.
title
and description
npm i svelte-meta
<script>
import Meta from 'svelte-meta';
</script>
<Meta
title="My Page"
description="It's a great page"
image="/cover.png"
url="https://website.com/page
/>
Property | Type | Description | Metadata Set |
---|---|---|---|
title |
string |
Title of your project | <title> , title , og:title |
description |
string |
Descriptoin of your project | description , og:description |
image |
string or { url: string; width: number; height: number; alt: string} |
Image for social networks | og:image |
url |
string |
URL of the current page | canonical og:url |
siteUrl |
string |
Root URL of your website | JSON-LD |
logo |
string |
Logo image for your brand | JSON-LD |
search |
string |
Search page base URL | JSON-LD |
sitemap |
string |
URL of your sitemap | sitemap |
openGraph |
Inherits other properties, plus custom og: properties, eg: video |
OpenGraph properties | og: |
og:
) properties if twitter:
specific metadata is not set, which is why svelte-meta
doesn't include them