Skip to content

Commit

Permalink
feat: add baidu
Browse files Browse the repository at this point in the history
  • Loading branch information
RainyNight9 committed Apr 13, 2024
1 parent 2a300e0 commit 0f92a23
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 246 deletions.
21 changes: 15 additions & 6 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
import { defineUserConfig } from 'vuepress'
import { defaultTheme } from '@vuepress/theme-default'
import { searchPlugin } from '@vuepress/plugin-search'
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'

export default defineUserConfig({
lang: 'zh-CN',
head: [['link', { rel: 'icon', href: '/images/lover.png' }]],
head: [
['link', { rel: 'icon', href: '/images/lover.png' }],
[
'script', {}, `
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?87d26d5dfc581ba7870114f705815bcd";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`
]
],
title: 'Rain9',
description: 'Rain9 的站点',
theme: defaultTheme({
Expand Down Expand Up @@ -58,9 +70,6 @@ export default defineUserConfig({
placeholder: '搜索',
}
},
}),
googleAnalyticsPlugin({
id: 'G-W5BY8N51Z2',
}),
})
],
})
71 changes: 71 additions & 0 deletions docs/.vuepress/config.js.59c30c58.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// docs/.vuepress/config.js
import { defineUserConfig } from "vuepress";
import { defaultTheme } from "@vuepress/theme-default";
import { searchPlugin } from "@vuepress/plugin-search";
import pkg from "@vuepress/plugin-google-analytics";
var { googleAnalyticsPlugin } = pkg;
var config_default = defineUserConfig({
lang: "zh-CN",
head: [["link", { rel: "icon", href: "/images/lover.png" }]],
title: "Rain9",
description: "Rain9 \u7684\u7AD9\u70B9",
theme: defaultTheme({
hostname: "https://raingpt.top",
logo: "/images/lover.png",
repo: "https://github.com/RainyNight9/rain9-blog",
navbar: [
{
text: "\u9996\u9875",
link: "/"
},
{
text: "\u524D\u7AEF",
link: "/blogs/frontend/"
},
{
text: "\u540E\u7AEF",
link: "/blogs/backend/"
},
{
text: "\u7B97\u6CD5",
link: "/blogs/algorithm/"
},
{
text: "WebGL",
link: "/blogs/webgl/"
},
{
text: "Web3",
link: "/blogs/web3/"
},
{
text: "Vim",
link: "/blogs/vim/"
},
{
text: "Rain9 \u7684\u535A\u5BA2",
children: [
{ text: "Github", link: "https://github.com/RainyNight9" },
{ text: "\u6398\u91D1", link: "https://juejin.cn/user/1943592288391496/posts" },
{ text: "\u516C\u4F17\u53F7", link: "https://mp.weixin.qq.com/s/kFGRxEwoWiXDgUC_D8mgnQ" }
]
}
]
}),
plugins: [
searchPlugin({
locales: {
"/": {
placeholder: "\u641C\u7D22"
}
}
}),
googleAnalyticsPlugin({
id: "G-W5BY8N51Z2"
})
]
});
export {
config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiZG9jcy8udnVlcHJlc3MvY29uZmlnLmpzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiL1VzZXJzL2NoZW5tby9EZXNrdG9wL3poYW5nYmluL215LXByb2plY3QvcmFpbjktYmxvZy9kb2NzLy52dWVwcmVzc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiL1VzZXJzL2NoZW5tby9EZXNrdG9wL3poYW5nYmluL215LXByb2plY3QvcmFpbjktYmxvZy9kb2NzLy52dWVwcmVzcy9jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL1VzZXJzL2NoZW5tby9EZXNrdG9wL3poYW5nYmluL215LXByb2plY3QvcmFpbjktYmxvZy9kb2NzLy52dWVwcmVzcy9jb25maWcuanNcIjtpbXBvcnQge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UsTUFBTTtBQUFBLFFBQ04sVUFBVTtBQUFBLFVBQ1IsRUFBRSxNQUFNLFVBQVUsTUFBTSxpQ0FBaUM7QUFBQSxVQUN6RCxFQUFFLE1BQU0sZ0JBQU0sTUFBTSxnREFBZ0Q7QUFBQSxVQUNwRSxFQUFFLE1BQU0sc0JBQU8sTUFBTSxvREFBb0Q7QUFBQSxRQUMzRTtBQUFBLE1BQ0Y7QUFBQSxJQUNGO0FBQUEsRUFDRixDQUFDO0FBQUEsRUFDRCxTQUFTO0FBQUEsSUFDUCxhQUFhO0FBQUEsTUFDWCxTQUFTO0FBQUEsUUFDUCxLQUFLO0FBQUEsVUFDSCxhQUFhO0FBQUEsUUFDZjtBQUFBLE1BQ0Y7QUFBQSxJQUNGLENBQUM7QUFBQSxJQUNELHNCQUFzQjtBQUFBLE1BQ3BCLElBQUk7QUFBQSxJQUNOLENBQUM7QUFBQSxFQUNIO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@
"@vuepress/theme-default": "2.0.0-beta.67",
"vue": "^3.3.7",
"vuepress": "2.0.0-beta.67"
},
"dependencies": {
"@vuepress/plugin-google-analytics": "^1.9.10"
}
}
Loading

0 comments on commit 0f92a23

Please sign in to comment.