https://github.com/roxiness/meta
https://github.com/roxiness/meta
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/roxiness/meta
- Owner: roxiness
- Created: 2020-03-11T10:04:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T12:23:44.000Z (over 6 years ago)
- Last Synced: 2025-02-28T10:59:27.215Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.