mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 17:07:22 +00:00
docs: update doc meta (#1790)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
02f3fd1451
commit
9b9843b501
@ -111,6 +111,28 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* Set default configuration for `<head>` on every page.
|
* Set default configuration for `<head>` on every page.
|
||||||
*
|
*
|
||||||
|
* @example
|
||||||
|
* ```js
|
||||||
|
* meta: {
|
||||||
|
* meta: [
|
||||||
|
* // <meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
* { name: 'viewport', content: 'width=device-width, initial-scale=1' }
|
||||||
|
* ],
|
||||||
|
* script: [
|
||||||
|
* // <script src="https://myawesome-lib.js"></script>
|
||||||
|
* { src: 'https://awesome-lib.js' }
|
||||||
|
* ],
|
||||||
|
* link: [
|
||||||
|
* // <link rel="stylesheet" href="https://myawesome-lib.css">
|
||||||
|
* { rel: 'stylesheet', href: 'https://awesome-lib.css' }
|
||||||
|
* ],
|
||||||
|
* // please note that this is an area that is likely to change
|
||||||
|
* style: [
|
||||||
|
* // <style type="text/css">:root { color: red }</style>
|
||||||
|
* { children: ':root { color: red }', type: 'text/css' }
|
||||||
|
* ]
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
* @version 3
|
* @version 3
|
||||||
*/
|
*/
|
||||||
meta: {
|
meta: {
|
||||||
|
Loading…
Reference in New Issue
Block a user