-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
53 lines (47 loc) · 1.22 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<script setup lang="ts">
const { page } = useContent()
const description = computed(() => page.value?.head?.description || page.value?.description || 'Page not found')
useHead({
titleTemplate: chunk => chunk ? `${chunk} - NuxtShip` : 'NuxtShip template',
link: [
{ rel: 'icon', href: '/icon.png' }
],
meta: [
{ property: 'og:site_name', content: 'NuxtShip' },
{ property: 'og:type', content: 'website' },
// TODO: UPDATE
{ property: 'og:image', content: 'https://nuxtlabs.com/social.png' },
{ property: 'og:image:alt', content: 'NuxtShip' },
{ property: 'description', content: 'description' },
{ property: 'twitter:card', content: 'summary_large_image' },
{ property: 'twitter:site', content: '@NuxtShip' },
],
htmlAttrs: {
lang: 'en'
},
bodyAttrs: {
class: 'bg-white dark:bg-gray-950'
}
})
useSeoMeta({
title: () => page.title,
description,
})
const open = ref(false)
</script>
<template>
<div class="flex flex-col px-4 mx-auto">
<USlideover
v-model="open"
@open-menu="open = true"
@close-menu="open = false"
>
<MobileNav />
</USlideover>
<AppHeader />
<div>
<NuxtPage />
</div>
<AppFooter />
</div>
</template>