-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
46 lines (36 loc) · 1.57 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
<template>
<img src="~/assets/images/favicon.png" style="display: none;" alt="">
<a href="https://www.linkedin.com/in/aranjannson/" target="_blank">
<div class="linkedInOverlay">
<img src="https://img.icons8.com/ios-filled/1000/000000/linkedin.png" alt=""/>
</div>
</a>
<Header/>
<NuxtPage/>
<CookiesConsent />
<Footer/>
</template>
<script setup lang="ts">
import CookiesConsent from "~/components/CookiesConsent.vue";
const route = useRoute();
const { t } = useI18n();
const title: ComputedRef<string> = computed(() => route.meta.title as string);
const description: ComputedRef<string> = computed(() => route.meta.description as string);
const image: ComputedRef<string> = computed(() => route.meta.image as string);
useHead({
meta: [
{property: 'og:title', content: `${t(title.value)} | AranJannson`},
{property: 'og:description', content: `${t(description.value)}` },
{property: 'og:image', content: `${t(image.value)}` },
{property: 'og:type', content: 'website' },
{property: 'og:image:height', content: `1079`},
{property: 'og:image:width', content: `1920`},
// { property: 'og:url', content: `https://aranjannson.com/${route.path}` },
{ property: 'twitter:title', content: `${t(title.value)} | AranJannson` },
{ property: 'twitter:card', content: 'summary_large_image' },
{ property: 'twitter:description', content: `${t(description.value)}` },
{ property: 'twitter:image', content: `${t(image.value)}` },
// { property: 'twitter:url', content: `https://aranjannson.com/${route.path}` },
]
})
</script>