Skip to content

Commit

Permalink
baidu tongji
Browse files Browse the repository at this point in the history
  • Loading branch information
Paper-Dragon committed Sep 21, 2024
1 parent 3b24055 commit f1bde87
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 64 deletions.
2 changes: 1 addition & 1 deletion src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ export default defineUserConfig({
],

// Enable it with pwa
shouldPrefetch: true,
shouldPrefetch: false,
});

34 changes: 8 additions & 26 deletions src/.vuepress/templateBuild.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,14 @@
<meta name="baidu-site-verification" content="codeva-udZGoBkoXj" />
<!-- 添加统计代码 -->
<script>
!(function (p) {
"use strict";
!(function (t) {
var s = window,
e = document,
i = p,
c = "".concat(
"https:" === e.location.protocol ? "https://" : "http://",
"sdk.51.la/js-sdk-pro.min.js"
),
n = e.createElement("script"),
r = e.getElementsByTagName("script")[0];
(n.type = "text/javascript"),
n.setAttribute("charset", "UTF-8"),
(n.async = !0),
(n.src = c),
(n.id = "LA_COLLECT"),
(i.d = n);
var o = function () {
s.LA.ids.push(i);
};
s.LA ? s.LA.ids && o() : ((s.LA = p), (s.LA.ids = []), o()),
r.parentNode.insertBefore(n, r);
})();
})({ id: "KMCT8w95vsN84FMB", ck: "KMCT8w95vsN84FMB" });
</script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm-baidu.geekery.cn/hm.js?e84690022974b0bcfffc5789f3023c51";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- end 添加统计代码 -->

<style>
Expand Down
65 changes: 28 additions & 37 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ export default hopeTheme({

plugins: {
blog: true,
// You should generate and use your own comment service
// comment: {
// provider: "Giscus",
// repo: "Paper-Dragon/paper-dragon.github.io",
// repoId: "R_kgDOKGpjZw",
// category: "blog",
// categoryId: "DIC_kwDOKGpjZ84CauNO",
// },

comment: {
provider: "Waline",
serverURL: "https://comment.geekery.cn/",
Expand All @@ -78,24 +69,6 @@ export default hopeTheme({
// 设置必填项,默认匿名,可选值:
requiredMeta: ['nick', 'mail'],
},

components: {
// 你想使用的组件
components: [
// "ArtPlayer",
// "Badge",
// "BiliBili",
// "CodePen",
"PDF",
// "Replit",
// "Share",
"SiteInfo",
// "StackBlitz",
"VPCard",
"VidStack",
// "XiGua",
],
},
feed: false,
searchPro: {
// 是否在输入时提供自动建议
Expand Down Expand Up @@ -127,7 +100,6 @@ export default hopeTheme({
// tokenize: (text, fieldName) => fieldName === "id" ? [text] : cut(text, true),
// },
},

// All features are enabled for demo, only preserve features you need here
mdEnhance: {
// https://theme-hope.vuejs.press/zh/guide/markdown/align.html
Expand All @@ -143,15 +115,16 @@ export default hopeTheme({
flowchart: false,
// 是否支持完整的 GFM 语法。
gfm: false,
include: true,
mark: true,
// 是否启用 Markdown 导入支持。你可以传入一个函数进行路径解析。
include: false,

mark: false,
// mermaid流程图 https://mermaid.js.org/
mermaid: true,
// 是否启用幻灯片支持。你可以传递选项控制导入的插件和主题
revealJs: false,
playground: {
presets: ["ts", "vue"],
},


stylize: [
{
matcher: "Recommended",
Expand All @@ -165,13 +138,31 @@ export default hopeTheme({
},
},
],
sub: true,
sup: true,
sub: false,
sup: false,
tabs: true,
vPre: false,
vuePlayground: true,
vuePlayground: false,
},
linksCheck: true,
components: {
// 你想使用的组件
components: [
// "ArtPlayer",
// "Badge",
// "BiliBili",
// "CodePen",
//"FontIcon",
"PDF",
// "Share",
// "StackBlitz",
// "VPBanner",
"VPCard",
"VidStack",
"SiteInfo"
// "XiGua",
],
},

// uncomment these if you want a pwa
// pwa: {
// favicon: "/favicon.ico",
Expand Down

0 comments on commit f1bde87

Please sign in to comment.