1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-25 02:27:10 +08:00

[docs update]百度统计

This commit is contained in:
guide 2022-11-16 07:46:27 +08:00
parent a271e56e63
commit c338579e36
2 changed files with 45 additions and 4 deletions

View File

@ -6,10 +6,54 @@ export default defineUserConfig({
dest: "./dist",
theme: themeConfig,
shouldPrefetch: false,
description:
"「Java学习指北+Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide ",
head: [
// meta
["meta", { name: "robots", content: "all" }],
["meta", { name: "author", content: "Guide" }],
[
"meta",
{
"http-equiv": "Cache-Control",
content: "no-cache, no-store, must-revalidate",
},
],
["meta", { "http-equiv": "Pragma", content: "no-cache" }],
["meta", { "http-equiv": "Expires", content: "0" }],
[
"meta",
{
name: "keywords",
content:
"Java基础, 多线程, JVM, 虚拟机, 数据库, MySQL, Spring, Redis, MyBatis, 系统设计, 分布式, RPC, 高可用, 高并发",
},
],
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
// 添加百度统计
[
"script",
{},
`var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?5dd2e8c97962d57b7b8fea1737c01743";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();`,
],
[
"link",
{
rel: "stylesheet",
href: "/iconfont/iconfont.css",
},
],
],
locales: {
"/": {
lang: "zh-CN",
}
},
},
plugins: [
searchPlugin({

View File

@ -1,6 +1,4 @@
import { hopeTheme } from "vuepress-theme-hope";
import { searchPlugin } from "@vuepress/plugin-search";
import { navbarConfig } from "./navbar";
import { sidebarConfig } from "./sidebar";
@ -25,7 +23,6 @@ export const themeConfig = hopeTheme({
"Word",
"ReadingTime",
],
blog: {
intro: "/about-the-author/",
sidebarDisplay: "mobile",