forked from unjs/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
61 lines (53 loc) · 1.4 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
54
55
56
57
58
59
60
61
<script lang="ts" setup>
import { joinURL } from 'ufo'
const site = useSiteConfig()
useHead({
titleTemplate: title => title ? `${title} ${site.separator} ${site.name}` : `${site.name}: Unleash JavaScript\'s Potential`,
htmlAttrs: {
lang: site.defaultLocale,
dir: 'ltr',
class: 'scroll-smooth',
},
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'theme-color', content: '#ECDC5A' },
],
link: [
{ rel: 'icon', href: '/favicon.svg' },
],
})
useSeoMeta({
ogSiteName: site.name,
ogImage: joinURL(site.url, '/og/home.jpg'),
ogImageWidth: 1440,
ogImageHeight: 810,
ogType: 'website',
twitterCard: 'summary_large_image',
twitterSite: '@unjsio',
twitterImage: joinURL(site.url, '/og/home.jpg'),
})
</script>
<template>
<Html>
<Head>
<SchemaOrgOrganization
logo="/favicon.svg"
:same-as="[
'https://github.com/unjs',
'https://twitter.com/unjsio',
]"
/>
<SchemaOrgWebSite :potential-action="[defineSearchAction({ target: '/search?q={search_term_string}' })]" />
<RobotMeta />
</Head>
<Body class="font-sans dark:bg-gray-900">
<NuxtLoadingIndicator color="#ECDC5A" />
<AppHeader />
<div class="px-4 container mx-auto xl:max-w-7xl">
<NuxtPage />
</div>
<AppFooter />
<UNotifications />
</Body>
</Html>
</template>