Skip to content

Commit f4f6146

Browse files
committed
feat: add head for seo
Signed-off-by: seven <[email protected]>
1 parent 3e038b3 commit f4f6146

File tree

5 files changed

+55
-32
lines changed

5 files changed

+55
-32
lines changed

docs/.vitepress/config.mts

Lines changed: 51 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,68 @@
11
import {defineConfig} from 'vitepress'
22

3+
const titleZh = 'ServerlessInsight| 全栈Serverless应用开发运维平台';
4+
const descZh = 'ServerlessInsight是一个开源的Serverless应用开发运维平台, 提供了全栈Serverless应用开发、部署、监控、调试、优化等功能。支持基础设施即代码的开发实践';
5+
const icon = '/favicon.ico';
36
// https://vitepress.dev/reference/site-config
47
export default defineConfig({
5-
title: "ServerlessInsight",
6-
description: "ServerlessInsight Site",
8+
lastUpdated: true,
79
outDir: '../dist',
810
cacheDir: '../cache',
9-
themeConfig: {
10-
// https://vitepress.dev/reference/default-theme-config
11-
nav: [
12-
{text: '主页', link: '/'},
13-
{text: '产品', link: '/products'},
14-
{text: '文档', link: '/docs'},
15-
],
16-
17-
sidebar: [
18-
{
19-
text: 'ServerlessInsight',
20-
items: [
21-
{text: 'ServerlessInsight介绍', link: 'introduction'},
22-
{text: '快速入门', link: 'getting-started'},
23-
{text: '用户手册', link: 'reference'},
24-
{text: '支持服务', link: 'support'},
25-
{text: '常见问题', link: 'faq'},
26-
{text: '实战案例', link: 'case-study'},
27-
]
28-
}
29-
],
30-
31-
socialLinks: [
32-
{icon: 'github', link: 'https://github.com/geek-fun/serverlessinsight'}
33-
]
34-
},
3511
locales: {
3612
root: {
3713
label: '中文',
3814
lang: 'zh-CN',
15+
title: titleZh,
16+
description: descZh,
17+
head: [
18+
['link', {rel: 'icon', icon}],
19+
['meta', {name: 'description', content: descZh}],
20+
['meta', {
21+
name: 'keywords',
22+
content: 'ServerlessInsight, serverless, serverless insight, 无服务器, serverless architecture, Serverless应用开发, Serverless应用部署,Serverless应用运维, 无服务器架构, 极客范,geekfun, 极客范开源社区, 开源软件, 软件可持续性,可持续软件项目'
23+
}],
24+
['meta', {property: 'og:title', content: titleZh}],
25+
['meta', {property: 'og:description', content: descZh}],
26+
['meta', {property: 'og:image', content: icon}],
27+
['meta', {property: 'og:url', content: '/'}],
28+
['meta', {property: 'og:site_name', content: titleZh}],
29+
['meta', {name: 'twitter:card', content: icon}],
30+
['meta', {name: 'twitter:title', content: titleZh}],
31+
['meta', {name: 'twitter:description', content: descZh}],
32+
['meta', {name: 'twitter:image', content: icon}],
33+
],
34+
themeConfig: {
35+
// https://vitepress.dev/reference/default-theme-config
36+
siteTitle: 'ServerlessInsight',
37+
nav: [
38+
{text: '主页', link: '/'},
39+
{text: '产品', link: '/products'},
40+
{text: '文档', link: '/docs'},
41+
],
42+
43+
sidebar: [
44+
{
45+
text: 'ServerlessInsight',
46+
items: [
47+
{text: 'ServerlessInsight介绍', link: 'introduction'},
48+
{text: '快速入门', link: 'getting-started'},
49+
{text: '用户手册', link: 'reference'},
50+
{text: '支持服务', link: 'support'},
51+
{text: '常见问题', link: 'faq'},
52+
{text: '实战案例', link: 'case-study'},
53+
]
54+
}
55+
],
56+
57+
socialLinks: [
58+
{icon: 'github', link: 'https://github.com/geek-fun/serverlessinsight'}
59+
]
60+
},
3961
},
4062
en: {
4163
label: 'English',
4264
lang: 'en',
4365
}
4466
}
67+
4568
})

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44

55
hero:
66
name: "ServerlessInsight"
7-
text: ' 全栈Serverless应用平台'
7+
text: '全栈Serverless应用平台'
88
tagline: "构建全生命周期的跨供应商Serverless用程序管理,助力快速发展的业务。"
99

1010
features:

docs/public/favicon.ico

15 KB
Binary file not shown.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostsless-site",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)