From efeaf6eb3da5c2562f007a7e64162eb5a83df211 Mon Sep 17 00:00:00 2001 From: Han <1655466387@qq.com> Date: Sun, 16 Mar 2025 14:33:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 3 ++- src/config.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 6d039b4..aeb2c96 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,10 +10,11 @@ import rehypeKatex from "rehype-katex"; import remarkDirective from "remark-directive"; import { remarkNote, addClassNames } from './src/plugins/markdown.custom' // Markdown 配置================ +import SITE_INFO from './src/config'; import swup from '@swup/astro'; // https://astro.build/config export default defineConfig({ - site: 'https://www.vvhan.com', + site: SITE_INFO.Site, build: { assets: 'vh_static' }, integrations: [ swup({ diff --git a/src/config.ts b/src/config.ts index 1d394f0..22fcb1d 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,6 @@ export default { Title: '韩小韩博客', + // 访问的域名 Site: 'https://www.vvhan.com', Subtitle: '不曾与你分享的时间,我在进步.', Description: '韩小韩博客 专注于前开发与相关技术的实战分享,涵盖Vue框架、Node.js、Serverless等,并涉及Node、Python、Linux、Docker等领域。同时,博客也分享作者的生活、音乐和旅行的热爱。', @@ -39,7 +40,7 @@ export default { // 博客音乐组件解析接口 vhMusicApi: 'https://meting-dd.2333332.xyz/api', // 评论组件 Twikoo - Twikoo: { envId: 'https://twikoo.vvhan.com/.netlify/functions/twikoo' }, + Twikoo: { envId: '' }, // Han Analytics 统计(https://github.com/uxiaohan/HanAnalytics) HanAnalytics: { enable: true, server: 'https://analytics.vvhan.com', siteId: 'Hello-HanHexoBlog' }, // Google 广告 From c12036aa08290f2316703094ebcde3e79241ad25 Mon Sep 17 00:00:00 2001 From: Han <1655466387@qq.com> Date: Sun, 16 Mar 2025 14:39:41 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=20github=20pages=20?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=AF=86=E5=88=AB=E4=B8=8B=E5=88=92=E7=BA=BF?= =?UTF-8?q?=E5=BC=80=E5=A4=B4=E7=9A=84=E6=96=87=E4=BB=B6=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.nojekyll | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/.nojekyll diff --git a/public/.nojekyll b/public/.nojekyll new file mode 100644 index 0000000..e69de29