Skip to content

Commit 9e5c4d4

Browse files
committed
添加署名和站点统计
1 parent 19ec21d commit 9e5c4d4

File tree

6 files changed

+39
-2
lines changed

6 files changed

+39
-2
lines changed

plume/docs/.vuepress/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineClientConfig } from "vuepress/client";
22

33
import { setupUI } from "./client.components";
44
import { setupPlugins } from "./client.plugins";
5-
5+
import Clarity from '@microsoft/clarity';
66
// 布局
77
import Layout from "./layouts/Layout.vue";
88
import AuthorDetail from "./plugins/vuepress-plugin-sillot-author/components/AuthorDetailPage.vue";
@@ -50,5 +50,7 @@ export default defineClientConfig({
5050
});
5151

5252
console.log("页面搜索路由已注册");
53+
54+
Clarity.init("ub9am2gcgh");
5355
},
5456
});

plume/docs/.vuepress/plume.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineThemeConfig({
3838
* 文章版权信息
3939
* @see https://theme-plume.vuejs.press/guide/features/copyright/
4040
*/
41-
// copyright: true,
41+
copyright: 'CC-BY-NC-4.0',
4242

4343
prevPage: true, // 是否启用上一页链接
4444
nextPage: true, // 是否启用下一页链接
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: 假设这是一篇翻译文章
3+
copyright:
4+
creation: translate
5+
license: CC-BY-4.0
6+
source: https://example.com/origin
7+
author:
8+
name: 原文作者
9+
url: https://example.com/author
10+
createTime: 2025/11/25 03:51:13
11+
permalink: /demo/ry73qxg2/
12+
---
13+
翻译了一些内容
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: 假设这是一篇转载文章
3+
copyright:
4+
creation: reprint
5+
license: CC-BY-4.0
6+
source: https://example.com/origin
7+
author:
8+
name: 转载者
9+
url: https://example.com/author
10+
createTime: 2025/11/25 03:49:35
11+
permalink: /demo/l2v9mwte/
12+
---
13+
转载了一些内容

plume/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"vuepress-theme-plume": "1.0.0-rc.178"
3939
},
4040
"dependencies": {
41+
"@microsoft/clarity": "^1.0.0",
4142
"artplayer": "^5.2.3",
4243
"chart.js": "^4.5.0",
4344
"d3": "^7.9.0",

plume/pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)