-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
44 lines (38 loc) · 1.15 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
<script lang="ts">
import "./styles/index.css";
import "@unocss/reset/tailwind.css";
import { getSettings } from "./utils/utilities";
</script>
<script setup lang="ts">
const settings = await getSettings();
const me = definePerson({
name: `${settings.authorFirstName ?? "John"} ${settings.authorLastName ?? "Doe"}`,
image: settings.authorAvatar ?? "/images/avatars/with_background.webp",
sameAs: [
"https://codeberg.org/CPlusPatch",
"mailto:[email protected]",
"https://matrix.to/#/@jesse:cpluspatch.dev",
],
description:
"Young aspiring software engineer, proficient in Web technologies and computers in general",
url: "/",
});
const myOrg = defineOrganization({
name: settings.organizationName ?? "CPlusPatch Development",
logo: settings.organizationLogo ?? "/public/images/icons/logo.svg",
});
useSchemaOrg(settings.organizationEnabled ? [me, myOrg] : [me]);
useServerSeoMeta({
titleTemplate: (titleChunk) => titleChunk ? `${titleChunk} · ${settings?.siteName}` : settings?.siteName ?? "",
author: me.name
});
</script>
<template>
<div>
<SeoKit />
<NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
</div>
</template>