generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
theme.config.js
57 lines (55 loc) · 1.48 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
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import { FaXTwitter } from "react-icons/fa6";
import { useRouter } from "next/router";
const config = {
logo: <span style={{ fontWeight: "bold" }}>ERC-7579</span>,
useNextSeoProps: () => {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s – ERC-7579",
};
} else {
return {
titleTemplate: "ERC-7579",
};
}
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="ERC-7579" />
<meta
property="og:description"
content="Minimal Modular Smart Accounts"
/>
<meta
property="og:image"
content="https://github.com/erc7579/erc7579.github.io/blob/main/public/logo.png"
/>
<meta property="og:url" content="https://erc7579.com/" />
<link rel="icon" href="/favicon.ico" />
</>
),
project: {
link: "https://github.com/erc7579",
},
chat: {
link: "https://twitter.com/erc7579",
icon: <FaXTwitter size={24} style={{ marginLeft: "-10px" }} />,
},
docsRepositoryBase: "https://github.com/erc7579/erc7579.github.io/tree/main",
footer: {
text: "ERC-7579 Docs",
},
banner: {
key: "initial-release",
text: (
<a href="https://eips.ethereum.org/EIPS/eip-7579" target="_blank">
Check out the ERC proposal →
</a>
),
},
};
export default config;