Skip to content

Commit 04a7e6a

Browse files
committed
perf: setup head meta
1 parent 2ead4b9 commit 04a7e6a

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

docs/.vitepress/config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ export default defineConfig({
55
title: "Jwc.js",
66
description: "A JavaScript framework for using JSX to write web components on the web.",
77
lastUpdated: true,
8+
9+
head: [
10+
['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }],
11+
['meta', { name: 'author', content: `wibus-wee, AkaraChen contributors` }],
12+
['meta', { name: 'keywords', content: 'typescript, node, jwcjs, web-component, web-component-framework' }],
13+
['meta', { property: 'og:title', content: "Jwc.js" }],
14+
['meta', { property: 'og:description', content: "A JavaScript framework for using JSX to write web components on the web." }],
15+
['meta', { property: 'og:url', content: "https://jwc.js.org" }],
16+
['meta', { property: 'og:image', content: "/social-media.png" }],
17+
['meta', { name: 'twitter:title', content: "Jwc.js" }],
18+
['meta', { name: 'twitter:description', content: "A JavaScript framework for using JSX to write web components on the web." }],
19+
['meta', { name: 'twitter:image', content: "/social-media.png" }],
20+
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
21+
['link', { rel: 'mask-icon', href: '/logo.svg', color: '#ffffff' }],
22+
],
23+
824
themeConfig: {
925
logo: "/logo.svg",
1026

docs/.vitepress/theme/styles/main.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ body {
1111
--vp-home-hero-image-filter: blur(50px) !important;
1212
--vp-home-hero-name-color: transparent !important;
1313
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe, #41d1ff) !important;
14-
--vp-c-brand: #bd34fe !important;
14+
--vp-c-brand: #bf40f9 !important;
1515
--vp-code-tab-active-bar-color: var(--vp-c-green) !important;
1616
--vp-button-brand-border: #bd34fe !important;
1717
--vp-button-brand-bg: #bd34fe !important;
1818
--vp-button-brand-hover-bg: #ae00ff !important;
1919
--vp-button-brand-hover-border: #b108ff !important;
20+
--vp-c-brand-dark: #ae00ff !important;
2021
}

docs/public/social-media.png

166 KB
Loading

0 commit comments

Comments
 (0)