Repository navigation
Expand file tree
/
Copy paththeme.config.tsx
More file actions
65 lines (55 loc) 路 2.05 KB
/
Copy paththeme.config.tsx
File metadata and controls
65 lines (55 loc) 路 2.05 KB
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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
import { useConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
logo: (<>
<img src='/logo.png' style={{ width: "35px", height: "35px", marginRight: "10px" }}></img>
<span><b>Big Null</b></span>
</>),
head() {
const { asPath, defaultLocale, locale } = useRouter()
const { frontMatter } = useConfig()
const url =
'https://big-null.github.io' +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`)
const topTitle = !!frontMatter.title
? `${frontMatter.title} | Big Null`
: !!frontMatter.sidebarTitle
? `${frontMatter.sidebarTitle} | Big Null`
: "Big Null";
const desc = frontMatter.description ?? "Big Null";
return (
<>
<title>{topTitle}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="/logo.png" />
<meta property="title" content={topTitle} />
<meta property="url" content={url} />
<meta property="description" content={desc} />
<meta property="og:url" content={url} />
<meta property="og:title" content={topTitle} />
<meta property="og:locale" content="en_GB" />
<meta property="og:type" content="website" />
<meta property="og:description" content={desc} />
<meta property="og:site_name" content="Big Null" />
</>
)
},
project: {
link: 'https://github.com/Big-null/big-null.github.io',
},
sidebar: {
defaultMenuCollapseLevel: 1,
},
feedback: {
content: null,
},
editLink: {
component: null,
},
footer: {
content: <span> Copyright 漏 {new Date().getFullYear()} Big null </span>,
},
}
export default config