-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.js
108 lines (106 loc) · 2.72 KB
/
theme.config.js
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import Image from 'next/image'
import { useRouter } from 'next/router'
import { useConfig } from 'nextra-theme-docs'
export default {
project: {
link: 'https://github.com/skytect/notes.skytect.one', // GitHub link in the navbar
},
// Global
docsRepositoryBase: 'https://github.com/skytect/notes.skytect.one/blob/main', // base URL for the docs repository
useNextSeoProps() {
return {
titleTemplate: '%s — skytect',
}
},
head: () => {
const { asPath } = useRouter()
const { frontMatter } = useConfig()
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="come forth and step into my realm of kNoWLeDge"
/>
<meta
property="og:url"
content={`https://notes.skytect.one${asPath}`}
/>
<meta
property="og:title"
content={frontMatter.title || 'my random notes'}
/>
<meta
property="og:description"
content={
frontMatter.description ||
'come forth and step into my realm of kNoWLeDge'
}
/>
<meta name="apple-mobile-web-app-title" content="kNoWLeDge" />
<link rel="icon" href="/icons/favicon.ico" sizes="any" />
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
<link
rel="preload"
href="/fonts/Inter.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="/fonts/JetBrainsMono.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
</>
)
},
// Navbar
logo: (
<>
<Image src="/icons/icon-512.png" alt="" width={32} height={32}></Image>
<span style={{ marginLeft: '.5em', fontWeight: 600 }}>skytect</span>
</>
),
search: {
emptyResult: 'Nothing found!',
loading: 'Searching...',
error: 'An error occurred??',
placeholder: 'Search notes...',
},
// Sidebar
sidebar: {
defaultMenuCollapseLevel: 2,
autoCollapse: true,
toggleButton: true,
},
// TOC Sidebar
toc: {
float: true,
title: 'On This Page',
backToTop: true,
},
feedback: {
content: 'Question? Give feedback',
labels: 'feedback',
},
editLink: {
text: 'Edit this page',
},
// Footer
footer: {
text: (
<a
href="https://github.com/skytect/notes.skytect.one/blob/main/LICENSE"
target="_blank"
rel="noopener noreferrer"
style={{ fontWeight: 600 }}
>
GPLv3 {new Date().getFullYear()}
</a>
),
},
}