From 3a1f00932acd4f36f5aa3e9f1ce05cee10a83b6c Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Thu, 20 Apr 2023 02:34:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E8=82=8C=E5=9C=A8github?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AD=A4=E9=A1=B5=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.vitepress/config.js b/.vitepress/config.js index 89cb601..7a72b02 100644 --- a/.vitepress/config.js +++ b/.vitepress/config.js @@ -98,7 +98,7 @@ export default defineConfig({ title: "HDU-CS-WIKI", description: "HDU计算机科学讲义", lastUpdated: true, - head: [['script async', { src: 'http://107.174.93.210:3000/script.js', "data-website-id": "3f11687a-faae-463a-b863-6127a8c28301" }]], + head: [['script', { async: "async", src: 'https://umami.hdu-cs.wiki/script.js', "data-website-id": "3f11687a-faae-463a-b863-6127a8c28301" }]], themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ @@ -512,7 +512,11 @@ export default defineConfig({ }, search: { provider: 'local' - } + }, + editLink: { + pattern: 'https://github.com/camera-2018/hdu-cs-wiki/edit/master/:path', + text: '在 GitHub 上修改此页' + }, }, markdown: { config: (md) => {