Nuxt/examples/meta-info/pages/index.vue
Sébastien Chopin a7a5aea003
Update comment
2017-11-06 10:43:52 +01:00

32 lines
576 B
Vue
Executable File

<template>
<div class="container">
<h1>Home page 🚀</h1>
<nuxt-link to="/about">About page</nuxt-link>
</div>
</template>
<script>
export default {
head: {
title: 'Home page 🚀',
meta: [
{ hid: 'description', name: 'description', content: 'Home page description' }
],
script: [
{ src: '/head.js' },
// Supported since 1.0
{ src: '/body.js', body: true },
{ src: '/defer.js', defer: undefined }
]
}
}
</script>
<style>
.container {
text-align: center;
margin-top: 150px;
font-size: 20px;
}
</style>