Nuxt/examples/head-elements/pages/index.vue

26 lines
421 B
Vue
Raw Normal View History

2016-11-07 01:34:58 +00:00
<template>
2016-11-14 22:59:54 +00:00
<div class="container">
<h1>Home page 🚀</h1>
<router-link to="/about">Go to /about</router-link>
</div>
2016-11-07 01:34:58 +00:00
</template>
<script>
export default {
2016-11-14 22:59:54 +00:00
head: {
title: 'Home page 🚀',
2016-11-07 01:34:58 +00:00
meta: [
2016-11-14 22:59:54 +00:00
{ hid: 'description', name: 'description', content: 'Home page description' }
2016-11-07 01:34:58 +00:00
]
}
}
</script>
2016-11-14 22:59:54 +00:00
<style>
.container {
text-align: center;
margin-top: 150px;
font-size: 20px;
}
</style>