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

26 lines
419 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>
2016-11-19 21:48:34 +00:00
<router-link to="/about">About page</router-link>
2016-11-14 22:59:54 +00:00
</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>