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

26 lines
415 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-12-16 17:12:38 +00:00
<nuxt-link to="/about">About page</nuxt-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>