项目作者: dozjs

项目描述 :
This plugin provides a function for managing basic og meta tag in your HTML document
高级语言: JavaScript
项目地址: git://github.com/dozjs/doz-metatag.git
创建时间: 2018-09-25T16:14:07Z
项目社区:https://github.com/dozjs/doz-metatag

开源协议:MIT License

下载


doz-metatag

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


Installation

  1. npm install --save doz-metatag

Usage

  1. import metaTag from 'doz-metatag'
  2. import Doz from 'doz'
  3. // Load plugin and set default values
  4. Doz.use(metaTag, {
  5. title: 'A title',
  6. type: 'website',
  7. description: 'A description',
  8. url: 'http://lorem.com',
  9. siteName: 'Lorem.com',
  10. locale: 'en_US',
  11. image: 'an-image.jpg',
  12. selfWindow: window
  13. })
  14. new Doz({
  15. /* ... */
  16. onMount() {
  17. this.metaTag({
  18. title: 'New title',
  19. description: 'New description',
  20. image: 'new-image.jpg'
  21. });
  22. }
  23. });

Changelog

You can view the changelog here

License

doz-metatag is open-sourced software licensed under the MIT license

Author

Fabio Ricali