Skip to content

This plugin provides a function for managing basic og meta tag in your HTML document

License

Notifications You must be signed in to change notification settings

dozjs/doz-metatag

Repository files navigation

doz-metatag

This plugin provides a function for managing basic og meta tag in your HTML document

Installation

npm install --save doz-metatag

Usage

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

About

This plugin provides a function for managing basic og meta tag in your HTML document

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published