@sveltech/meta

0.0.0 • Public • Published

Metadata with Open Graph for SSR SPAs

Usage

import { meta, done } from '@sveltech/meta'

meta('title', 'Title of my website')
meta('description', 'Description of my website')
meta('twitter:card', 'summary')

This produces the following HTML in <head>

<meta name="title" content="Title of my website">
<meta property="og:title" content="Title of my website">
<meta name="description" content="Description of my website">
<meta property="og:description" content="Description of my website">
<meta name="twitter:card" content="summary">
Metadata without a colon in the name will produce an additional Open Graph element.

The meta function can be disabled by calling done() or firing an app-loaded event.

/@sveltech/meta/

    Package Sidebar

    Install

    npm i @sveltech/meta

    Weekly Downloads

    1

    Version

    0.0.0

    License

    MIT

    Unpacked Size

    2.31 kB

    Total Files

    3

    Last publish

    Collaborators

    • jakobrosenberg