-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdefault.vue
54 lines (52 loc) · 1.11 KB
/
default.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
<script setup>
import { useI18n } from 'vue-i18n'
const { locale } = useI18n({ useScope: 'global' })
useHead({
htmlAttrs: {
lang: locale,
},
titleTemplate: (pageTitle) => {
return pageTitle ? `${pageTitle} - Azad Furkan ŞAKAR` : 'Azad Furkan ŞAKAR'
},
link: [
{
rel: 'icon', type: 'image/png', href: '/nuxt.png',
},
{
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
},
{
rel: 'preconnect',
href: 'https://fonts.gstatic.com',
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap',
crossorigin: '',
},
],
script: [
{
src: 'https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js',
body: false,
type: 'module',
},
{
src: 'https://unpkg.com/[email protected]/dist/ionicons/ionicons.js',
body: false,
nomodule: true,
},
],
})
</script>
<template>
<main class="relative">
<Sidebar />
<div class="main-content">
<Navbar />
<slot />
</div>
<CookieBar />
</main>
</template>