Nuxt/examples/meta-info/pages/index.vue

35 lines
643 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' }
2017-11-06 02:16:26 +00:00
],
2018-01-23 10:30:36 +00:00
noscript: [
{ innerHTML: 'Body No Scripts', body: true }
],
2017-11-06 02:16:26 +00:00
script: [
{ src: '/head.js' },
2017-11-06 09:43:52 +00:00
// Supported since 1.0
2017-11-06 02:16:26 +00:00
{ src: '/body.js', body: true },
2017-11-06 12:33:03 +00:00
{ src: '/defer.js', defer: '' }
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>