An open API service indexing awesome lists of open source software.

https://github.com/roxiness/meta


https://github.com/roxiness/meta

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

          

# Metadata with Open Graph for SSR SPAs

### Usage

```javascript
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 ``

```HTML

```
###### 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.