-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.jsx
152 lines (148 loc) · 4.25 KB
/
theme.config.jsx
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
import React, { Fragment } from "react";
import JSONLD from "@/components/JSONLD";
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
import Image from "next/image";
import { AiOutlineGithub } from "react-icons/ai";
import { BiLogoDiscordAlt } from "react-icons/bi";
import { RiTwitterXFill } from "react-icons/ri";
import { FaLinkedin } from "react-icons/fa";
import ThemeImage from "@/components/ThemeImage";
const defaultUrl = "https://homebrew.ltd";
const defaultImage = "https://homebrew.ltd/assets/images/general/og-image.png";
const structuredData = {
"@context": "https://schema.org",
"@type": "Organization",
name: "Homebrew",
url: `${defaultUrl}`,
logo: `${defaultImage}`,
};
export default {
logo: (
<ThemeImage
source={{
light: "/logos/homebrew.svg",
dark: "/logos/homebrew.svg",
}}
alt="Logo Homebrew"
width={32}
height={32}
/>
),
search: {
placeholder: "Search...",
},
navbar: {
extraContent: (
<div className="flex items-center space-x-4">
<a
href="https://discord.com/invite/FTk2MvZwJH"
target="_blank"
className="cursor-pointer"
>
<BiLogoDiscordAlt className="text-xl text-black/60 dark:text-white/60 ml-4" />
</a>
<a
href="https://twitter.com/homebrewltd"
target="_blank"
className="cursor-pointer"
>
<RiTwitterXFill className="text-base text-black/60 dark:text-white/60" />
</a>
<a
href="https://www.linkedin.com/company/homebrewltd"
target="_blank"
className="cursor-pointer"
>
<FaLinkedin className="text-lg text-black/60 dark:text-white/60" />
</a>
<a
href="https://github.com/janhq/jan"
target="_blank"
className="cursor-pointer"
>
<AiOutlineGithub className="text-xl text-black/60 dark:text-white/60" />
</a>
<a
href="https://huggingface.co/jan-hq"
target="_blank"
className="cursor-pointer "
>
<Image
src="/logos/hf.svg"
alt="Homebrew Logo"
width={20}
height={20}
className="grayscale"
/>
</a>
</div>
),
},
docsRepositoryBase: "https://github.com/janhq/homebrew/tree/main",
useNextSeoProps() {
return {
titleTemplate: "%s – Homebrew",
};
},
head: function useHead() {
const { title, frontMatter } = useConfig();
const titleTemplate = (frontMatter?.title || title) + " - " + "Homebrew";
const { asPath } = useRouter();
return (
<Fragment>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<title>{titleTemplate}</title>
<meta name="og:title" content={titleTemplate} />
<meta
name="description"
content={
frontMatter?.description ||
`Building human-augmenting AIs that run on energy-efficient hardware.`
}
/>
<meta
name="og:description"
content={
frontMatter?.description ||
`Homebrew is an AI R&D studio that works in the area of Local AI, Small Language Models and Multi-modality. `
}
/>
<link
rel="canonical"
href={
frontMatter?.ogImage ? "https://homebrew.ltd/" + asPath : defaultUrl
}
/>
<meta
property="og:url"
content={
frontMatter?.ogImage ? "https://homebrew.ltd/" + asPath : defaultUrl
}
/>
<meta
property="og:image"
content={
frontMatter?.ogImage
? "https://homebrew.ltd/" + frontMatter?.ogImage
: "https://homebrew.ltd/assets/images/general/og-image.png"
}
/>
<meta property="og:image:alt" content="Jan-OGImage" />
<JSONLD data={structuredData} />
</Fragment>
);
},
navigation: {
prev: true,
next: true,
},
footer: {
text: (
<span>
©{new Date().getFullYear()} <span>Homebrew Computer Company</span>.
</span>
),
},
};