mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 19:25:13 +00:00
29 lines
378 B
Vue
29 lines
378 B
Vue
<template>
|
|
<div>
|
|
<h1>I can haz meta tags</h1>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
head: {
|
|
title: 'My title',
|
|
htmlAttrs: {
|
|
foo: 'baz'
|
|
},
|
|
headAttrs: {
|
|
bar: 'foo'
|
|
},
|
|
bodyAttrs: {
|
|
baz: 'bar'
|
|
},
|
|
meta: [
|
|
{ content: 'my meta' }
|
|
],
|
|
script: [
|
|
{ src: '/body.js', body: true }
|
|
]
|
|
}
|
|
}
|
|
</script>
|