-
Notifications
You must be signed in to change notification settings - Fork 2
/
theme.config.js
157 lines (156 loc) · 4.17 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
/* eslint sort-keys: error */
/**
* @type {import('nextra-theme-docs').DocsThemeConfig}
*/
export default {
docsRepositoryBase: 'https://github.com/OlyNet/wiki/tree/main/',
logo: (
<>
<span>
<Image src="/logo.png" height={30} width={30} />
<p>Olynet</p>
<style jsx>{`
p {
font-weight: bold;
padding-left: 5px;
}
span {
display: flex;
align-content: center;
align-items: center;
padding: 0.5rem 0.5rem 0.5rem 0;
mask-image: linear-gradient(
60deg,
black 25%,
rgba(0, 0, 0, 0.2) 50%,
black 75%
);
mask-size: 400%;
mask-position: 0%;
}
span:hover {
mask-position: 100%;
transition: mask-position 1s ease, -webkit-mask-position 1s ease;
}
`}</style>
</span>
</>
),
head: (
<>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="Das OlyNet ist ein studentischer Verein und hilft den Bewohnern des Olydorfs bei Internetproblemen"
/>
<meta
name="og:description"
content="Das OlyNet ist ein studentischer Verein und hilft den Bewohnern des Olydorfs bei Internetproblemen"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site:domain" content="olynet.club" />
<meta name="twitter:url" content="https://www.olynet.club/" />
<meta
name="og:title"
content="Das OlyNet ist ein studentischer Verein und hilft den Bewohnern des Olydorfs bei Internetproblemen"
/>
<meta name="apple-mobile-web-app-title" content="Olynet" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
</>
),
search: {
placeholder() {
const { locale } = useRouter()
return locale === 'de' ? 'Suchen...' : 'Search...'
},
},
feedback: false,
navigation: true,
primaryHue: 50,
footer: {
component() {
const { locale } = useRouter()
return (
<div style={{ textAlign: 'center', padding: 15 }}>
<div style={{ display: 'flex', gap: 15, justifyContent: 'center' }}>
<Link href="/imprint">
{locale === 'de' ? 'Impressum' : 'Imprint'}
</Link>
<Link href="/privacy">
{locale === 'de' ? 'Datenschutzerklärung' : 'Privacy Policy'}
</Link>
</div>
<p>{new Date().getFullYear()} © Olynet e.V.</p>
</div>
)
},
},
editLink: {
text() {
const { locale } = useRouter()
return locale === 'de'
? 'Diese Seite auf Github bearbeiten'
: 'Edit this page on GitHub'
},
},
sidebar: {
toggleButton: true,
},
toc: {
float: false,
title() {
const { locale } = useRouter()
return locale === 'de' ? 'Auf dieser Seite' : 'On This Page'
},
},
gitTimestamp({ timestamp }) {
const { locale } = useRouter()
return (
<>
{locale === 'de' ? 'Zuletzt aktualisiert am' : 'Last updated on'}{' '}
{timestamp.toLocaleDateString(locale, {
day: 'numeric',
month: 'long',
year: 'numeric',
})}
</>
)
},
i18n: [
{ locale: 'en', text: 'English' },
{ locale: 'de', text: 'Deutsch' },
],
useNextSeoProps() {
return {
titleTemplate: '%s – Olynet',
}
},
}