Create Nuxt version

This commit is contained in:
2020-08-08 20:08:44 -05:00
parent 9e80e528c9
commit 128c554ce5
194 changed files with 15155 additions and 12891 deletions

View File

@@ -0,0 +1,28 @@
<template>
<article class="content auto">
<h1 v-html="page.title" />
<nuxt-content :document="page" />
<p><br><nuxt-link to="/" title="Home">&laquo; Home</nuxt-link></p>
</article>
</template>
<script lang="ts">
import Vue from 'vue'
import { siteTitle } from '../index.vue'
export default Vue.extend({
async asyncData ({ $content, params }) {
const page = await $content(`about/${params.slug}`).fetch()
return { page }
},
head () {
return { title: siteTitle((this as any).page.title) }
}
})
</script>
<style scoped>
li {
margin-bottom: .8rem;
}
</style>