-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.vue
35 lines (33 loc) · 893 Bytes
/
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
<script setup lang="ts">
const title = 'atelierAnchor'
const description = 'graphic & typeface design studio in shanghai. we make typeface as A narrative.'
const url = 'https://atelier-anchor.com'
const date = new Date(import.meta.env.VITE_BUILD_DATE as string)
useHead({
titleTemplate: (name) => (name ? `${name} · ${title}` : title),
link: [{ rel: 'icon', href: '/favicon.png' }],
meta: [
{ name: 'copyright', content: `© ${date.getFullYear()} ${title}` },
{ name: 'build-time', content: date.toISOString() },
],
htmlAttrs: {
lang: 'en',
},
})
useServerSeoMeta({
description,
twitterCard: 'summary',
twitterSite: '@atelier_anchor',
twitterTitle: title,
twitterDescription: description,
ogType: 'website',
ogUrl: url,
ogTitle: title,
ogDescription: description,
})
</script>
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>