-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.vue
62 lines (56 loc) · 1.33 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
<script setup lang="ts">
import { joinURL } from "ufo";
const siteConfig = useSiteConfig();
const route = useRoute();
const colorMode = useColorMode();
const color = computed(() =>
colorMode.value === "dark" ? "#18181b" : "#f4f4f5",
);
useServerHead({
htmlAttrs: {
lang: "en",
},
link: [
{ rel: "icon", href: "/favicon.ico", sizes: "32x32" },
{ rel: "icon", href: "/icon.svg", type: "image/svg+xml" },
{
rel: "canonical",
href: joinURL(siteConfig.url, route.path),
},
],
script: [
{
src: "https://plausible.io/js/script.js",
defer: true,
"data-domain": "kirbyseo.com",
},
// {
// src: "https://www.googletagmanager.com/gtag/js?id=AW-16488150310",
// async: true,
// },
// {
// innerHTML: `
// window.dataLayer = window.dataLayer || []
// function gtag() { dataLayer.push(arguments) }
// gtag('js', new Date())
// gtag('config', 'AW-16488150310')
// `.trimStart(),
// },
],
});
useSeoMeta({
themeColor: color,
titleTemplate: "%s – Kirby SEO Audit",
ogSiteName: "Kirby SEO Audit",
twitterCard: "summary_large_image",
});
</script>
<template>
<div>
<!-- <NuxtLoadingIndicator /> -->
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<UNotifications />
</div>
</template>