-
Notifications
You must be signed in to change notification settings - Fork 41
/
app.vue
87 lines (85 loc) · 2.31 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<script setup>
const description = 'Debbie O\'Brien, Program Manager at Microsoft working on Playwright, with over 10 years experience in Frontend development. Google Developer Expert in web technologies, Previous Microsoft Most Valuable Professional in developer technologies, GitHub Start Alumni, NuxtJS Ambassador and Cloudinary Media Developer Expert.'
const ogTitle = 'Debbie codes and helps others learn Playwright, testing, React, Nuxt and more'
const twitterDescription = 'My website of where I play around with Nuxt, Playwright and more and showcase my blog, resources etc'
const twitterCard = 'https://debbie.codes/twitter-card.png'
const mySite = 'https://debbie.codes'
useHead({
htmlAttrs: {
lang: 'en',
},
charset: 'utf-8',
title: ogTitle,
titleTemplate: title =>
title !== ogTitle
? `${title} · Debbie Codes`
: title,
meta: [
{
name: 'google-site-verification',
content: 'Nb9JyfPdxgxIzfosyzt-JsvJZkoUVlhEYN4TuoLPWF0',
},
{
name: 'description',
content:
description,
},
// Test on: https://developers.facebook.com/tools/debug/ or https://socialsharepreview.com/
{ property: 'og:site_name', content: mySite },
{ property: 'og:type', content: 'website' },
{
property: 'og:url',
content: mySite,
},
{
property: 'og:title',
content: ogTitle
,
},
{
property: 'og:description',
content:
description,
},
{
property: 'og:image',
content: twitterCard,
},
// Test on: https://cards-dev.twitter.com/validator or https://socialsharepreview.com/
{ name: 'twitter:site', content: '@debs_obrien' },
{ name: 'twitter:card', content: 'summary_large_image' },
{
name: 'twitter:url',
content: mySite,
},
{
name: 'twitter:title',
content: ogTitle,
},
{
name: 'twitter:description',
content: twitterDescription,
},
{
name: 'twitter:image',
content: twitterCard,
},
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'canonical',
href: mySite,
},
],
})
</script>
<template>
<div>
<TheTopBar />
<div class="lg:container mx-auto mt-top-bar px-2 md:px-4">
<NuxtPage />
</div>
<TheFooter />
</div>
</template>