Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dozjs/doz-metatag
This plugin provides a function for managing basic og meta tag in your HTML document
https://github.com/dozjs/doz-metatag
doz metatags opengraph pre-rendering
Last synced: about 1 month ago
JSON representation
This plugin provides a function for managing basic og meta tag in your HTML document
- Host: GitHub
- URL: https://github.com/dozjs/doz-metatag
- Owner: dozjs
- License: mit
- Created: 2018-09-25T16:14:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T02:29:25.000Z (about 2 years ago)
- Last Synced: 2024-11-19T13:07:43.447Z (about 2 months ago)
- Topics: doz, metatags, opengraph, pre-rendering
- Language: JavaScript
- Homepage:
- Size: 631 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# doz-metatag
> This plugin provides a function for managing basic og meta tag in your HTML document
## Installation
```
npm install --save doz-metatag
```## Usage
```js
import metaTag from 'doz-metatag'
import Doz from 'doz'// Load plugin and set default values
Doz.use(metaTag, {
title: 'A title',
type: 'website',
description: 'A description',
url: 'http://lorem.com',
siteName: 'Lorem.com',
locale: 'en_US',
image: 'an-image.jpg',
selfWindow: window
})new Doz({
/* ... */
onMount() {
this.metaTag({
title: 'New title',
description: 'New description',
image: 'new-image.jpg'
});
}
});
```## Changelog
You can view the changelog here## License
doz-metatag is open-sourced software licensed under the MIT license## Author
Fabio Ricali