Skip to content

Commit c338579

Browse files
committed
[docs update]百度统计
1 parent a271e56 commit c338579

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

docs/.vuepress/config.ts

+45-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,54 @@ export default defineUserConfig({
66
dest: "./dist",
77
theme: themeConfig,
88
shouldPrefetch: false,
9+
description:
10+
"「Java学习指北+Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide! ",
11+
head: [
12+
// meta
13+
["meta", { name: "robots", content: "all" }],
14+
["meta", { name: "author", content: "Guide" }],
15+
[
16+
"meta",
17+
{
18+
"http-equiv": "Cache-Control",
19+
content: "no-cache, no-store, must-revalidate",
20+
},
21+
],
22+
["meta", { "http-equiv": "Pragma", content: "no-cache" }],
23+
["meta", { "http-equiv": "Expires", content: "0" }],
24+
[
25+
"meta",
26+
{
27+
name: "keywords",
28+
content:
29+
"Java基础, 多线程, JVM, 虚拟机, 数据库, MySQL, Spring, Redis, MyBatis, 系统设计, 分布式, RPC, 高可用, 高并发",
30+
},
31+
],
32+
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
33+
// 添加百度统计
34+
[
35+
"script",
36+
{},
37+
`var _hmt = _hmt || [];
38+
(function() {
39+
var hm = document.createElement("script");
40+
hm.src = "https://hm.baidu.com/hm.js?5dd2e8c97962d57b7b8fea1737c01743";
41+
var s = document.getElementsByTagName("script")[0];
42+
s.parentNode.insertBefore(hm, s);
43+
})();`,
44+
],
45+
[
46+
"link",
47+
{
48+
rel: "stylesheet",
49+
href: "/iconfont/iconfont.css",
50+
},
51+
],
52+
],
953
locales: {
1054
"/": {
1155
lang: "zh-CN",
12-
}
56+
},
1357
},
1458
plugins: [
1559
searchPlugin({

docs/.vuepress/themeConfig.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { hopeTheme } from "vuepress-theme-hope";
2-
import { searchPlugin } from "@vuepress/plugin-search";
3-
42
import { navbarConfig } from "./navbar";
53
import { sidebarConfig } from "./sidebar";
64

@@ -25,7 +23,6 @@ export const themeConfig = hopeTheme({
2523
"Word",
2624
"ReadingTime",
2725
],
28-
2926
blog: {
3027
intro: "/about-the-author/",
3128
sidebarDisplay: "mobile",

0 commit comments

Comments
 (0)