Skip to content

Commit b3d507c

Browse files
committed
tweak: 🔧 configure ogp
1 parent d310b26 commit b3d507c

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

docs/.vitepress/config.ts

+23-20
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,48 @@ export default defineConfig({
88
lang: "en",
99
appearance: "dark",
1010
head: [
11+
["link", { rel: "icon", href: "https://github.com/Ubugeeei/tecack/blob/main/docs/public/tecack.gif?raw=true" }],
12+
1113
// og
1214
["meta", { property: "og:site_name", content: "tecack" }],
1315
["meta", { property: "og:url", content: "https://ubugeeei.github.io/tecack" }],
14-
["meta", { property: "og:title", content: "tecack" }],
16+
[
17+
"meta",
18+
{
19+
property: "og:title",
20+
content: "tecack | The hand-writing recognition engine",
21+
},
22+
],
1523
[
1624
"meta",
1725
{
1826
property: "og:description",
1927
content: "The hand-writing recognition engine built with TypeScript. Forked from KanjiCanvas.",
2028
},
2129
],
22-
// TODO:
23-
// [
24-
// "meta",
25-
// {
26-
// property: "og:image",
27-
// content: "https://github.com/Ubugeeei/tecack/blob/main/docs/public/tecack-img.png?raw=true",
28-
// },
29-
// ],
30+
[
31+
"meta",
32+
{ property: "og:image", content: "https://github.com/Ubugeeei/tecack/blob/main/docs/public/tecack.gif?raw=true" },
33+
],
3034
["meta", { property: "og:image:alt", content: "tecack" }],
35+
// x
3136
["meta", { name: "twitter:site", content: "tecack" }],
32-
// TODO:
33-
// ["meta", { name: "twitter:card", content: "summary_large_image" }],
34-
["meta", { name: "twitter:title", content: "tecack" }],
37+
["meta", { name: "twitter:title", content: "tecack | The hand-writing recognition engine" }],
3538
[
3639
"meta",
3740
{
3841
name: "twitter:description",
3942
content: "The hand-writing recognition engine built with TypeScript. Forked from KanjiCanvas.",
4043
},
4144
],
42-
// TODO:
43-
// [
44-
// "meta",
45-
// {
46-
// name: "twitter:image",
47-
// content: "https://github.com/Ubugeeei/tecack/blob/main/docs/public/tecack-img.png?raw=true",
48-
// },
49-
// ],
45+
["meta", { name: "twitter:card", content: "summary_large_image" }],
46+
[
47+
"meta",
48+
{
49+
name: "twitter:image",
50+
content: "https://github.com/Ubugeeei/tecack/blob/main/docs/public/tecack.gif?raw=true",
51+
},
52+
],
5053
["meta", { name: "twitter:image:alt", content: "tecack" }],
5154
],
5255
themeConfig: {

0 commit comments

Comments
 (0)