-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
59 lines (56 loc) · 1.9 KB
/
error.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
<template>
<main id="main">
<SectionsError />
</main>
</template>
<script setup>
const title = 'Error Page | Gonzalo Hirsch';
const description =
'Congrats on finding the error page; you sure did look for it, and now you are sharing it with the world. I suggest you go to the homepage where you can find better stuff.';
const image = 'meta-img.webp';
const url = 'https://gonzalohirsch.com/';
useHead({
meta: [
{ hid: 'robots', name: 'robots', content: 'noindex' },
// OG Card
{ hid: 'og:title', property: 'og:title', content: title },
{ hid: 'og:url', property: 'og:url', content: url + '404' },
{ hid: 'og:description', property: 'og:description', content: description },
{ hid: 'og:image', property: 'og:image', content: url + image },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:image:type', property: 'og:image:type', content: 'image/jpeg' },
{ hid: 'og:image:width', property: 'og:image:width', content: '800' },
{ hid: 'og:image:height', property: 'og:image:height', content: '418' },
{
hid: 'og:image:alt',
property: 'og:image:alt',
content: 'Gonzalo Hirsch',
},
// Twitter card
{
hid: 'twitter:card',
name: 'twitter:card',
content: 'summary_large_image',
},
{ hid: 'twitter:site', name: 'twitter:site', content: '@GonzaloHirsch' },
{
hid: 'twitter:creator',
name: 'twitter:creator',
content: '@GonzaloHirsch',
},
{ hid: 'twitter:title', name: 'twitter:title', content: title },
{ hid: 'twitter:url', name: 'twitter:url', content: url + '404' },
{
hid: 'twitter:description',
name: 'twitter:description',
content: description,
},
{ hid: 'twitter:image', name: 'twitter:image', content: url + image },
{
hid: 'twitter:image:alt',
name: 'twitter:image:alt',
content: 'Gonzalo Hirsch',
},
],
});
</script>