Skip to content

Commit e2eefef

Browse files
committed
Update config.ts
1 parent 166e222 commit e2eefef

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

docs/.vuepress/config.ts

+28-5
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,45 @@ import themeConfig from "./themeConfig";
44
module.exports = defineHopeConfig({
55
port: "8080",
66
title: "JavaGuide",
7-
description: "Java学习&&面试指南",
7+
description:
8+
"「Java学习指北+Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide! ",
89
//指定 vuepress build 的输出目录
910
dest: "./dist",
1011
// 是否开启默认预加载 js
1112
shouldPrefetch: (file, type) => false,
1213
head: [
14+
// meta
15+
["meta", { name: "robots", content: "all" }],
16+
["meta", { name: "author", content: "Guide" }],
17+
[
18+
"meta",
19+
{
20+
"http-equiv": "Cache-Control",
21+
content: "no-cache, no-store, must-revalidate",
22+
},
23+
],
24+
["meta", { "http-equiv": "Pragma", content: "no-cache" }],
25+
["meta", { "http-equiv": "Expires", content: "0" }],
26+
[
27+
"meta",
28+
{
29+
name: "keywords",
30+
content:
31+
"Java基础, 多线程, JVM, 虚拟机, 数据库, MySQL, Spring, Redis, MyBatis, 系统设计, 分布式, RPC, 高可用, 高并发, Java面试指北, Java 面试题",
32+
},
33+
],
34+
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
1335
// 添加百度统计
1436
[
15-
"script", {},
37+
"script",
38+
{},
1639
`var _hmt = _hmt || [];
1740
(function() {
1841
var hm = document.createElement("script");
1942
hm.src = "https://hm.baidu.com/hm.js?5dd2e8c97962d57b7b8fea1737c01743";
2043
var s = document.getElementsByTagName("script")[0];
2144
s.parentNode.insertBefore(hm, s);
22-
})();`
45+
})();`,
2346
],
2447
[
2548
"link",
@@ -31,8 +54,8 @@ module.exports = defineHopeConfig({
3154
],
3255
locales: {
3356
"/": {
34-
lang: "zh-CN"
35-
}
57+
lang: "zh-CN",
58+
},
3659
},
3760
themeConfig,
3861
});

0 commit comments

Comments
 (0)