-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
36 lines (30 loc) · 956 Bytes
/
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
<script setup lang="ts">
import "./styles.css";
import "./estyles.css";
const route: any = useRoute();
const siteName = "elektron.art";
const titleTemplate = (title = undefined) =>
title ? `${title} / ${siteName}` : siteName;
useHead({
titleTemplate,
viewport: "width=device-width, initial-scale=1, maximum-scale=1",
link: [{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }],
meta: [{ name: "og:title", content: titleTemplate(route.meta.title) }],
});
// Uncomment when using Netifly on-demand builder
// https://nitro.unjs.io/deploy/providers/netlify#on-demand-builders
// if (process.server) {
// const nuxtApp = useNuxtApp();
// nuxtApp.ssrContext.event.res.setHeader("ttl", route.meta.ttl || 60 * 10); // 10 minutes
// }
</script>
<template>
<NuxtLayout>
<Script
defer
data-domain="elektron.art"
src="https://plausible.io/js/plausible.local.js"
/>
<NuxtPage />
</NuxtLayout>
</template>