-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
72 lines (69 loc) · 1.99 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
62
63
64
65
66
67
68
69
70
71
72
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<script lang="ts" setup>
const config = useRuntimeConfig()
const title = config.public.siteName
const description = '{{ SITE_DESCRIPTION }}'
const url = config.public.siteUrl
const themeColour = '#000000'
useHead({
titleTemplate(titleChunk) {
return titleChunk ? `${titleChunk} | ${title}` : `${title}`
},
bodyAttrs: {
class: 'min-h-full font-body antialiased',
},
htmlAttrs: {
class: 'h-full',
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: description },
{ property: 'og:title', content: title },
{ property: 'og:site_name', content: title },
{ property: 'og:description', content: description },
{ property: 'og:url', content: url },
{ property: 'og:image', content: '/img/opengraph.jpg' },
{ property: 'og:image:width', content: '1200' },
{ property: 'og:image:height', content: '630' },
{ name: 'twitter:card', content: 'summary_image_large' },
{ name: 'twitter:url', content: url },
{ name: 'twitter:title', content: title },
{ name: 'twitter:description', content: description },
{ name: 'apple-mobile-web-app-title', content: title },
{ name: 'msapplication-TileColor', content: themeColour },
{ name: 'msapplication-config', content: '/browserconfig.xml' },
{ name: 'theme-color', content: themeColour },
],
link: [
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/favicon/apple-touch-icon.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon/favicon-16x16.png',
},
{ rel: 'manifest', href: '/site.webmanifest' },
{
rel: 'mask-icon',
href: '/favicon/safari-pinned-tab.svg',
color: themeColour,
},
],
})
</script>