From d0d3689eea9e16a5f7a3a26e532fb8050016d194 Mon Sep 17 00:00:00 2001 From: Rhen Cloud Date: Sun, 18 Jan 2026 14:43:20 +0800 Subject: [PATCH] update --- .github/workflows/build.yml | 2 ++ app/components/main/footer.vue | 12 ++++++++- app/config/index.ts | 2 +- nuxt.config.ts | 48 +++++++++++++++++++++++++++++----- 4 files changed, 55 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a3b3bd..3ad8d49 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,8 @@ on: env: EDGEONE_PROJECT_NAME: cloud-blog + GIT_DATE: ${{ github.event.head_commit.timestamp || github.event.pusher.date }} + GIT_SHA: ${{ github.event.head_commit.id || github.sha }} jobs: build: diff --git a/app/components/main/footer.vue b/app/components/main/footer.vue index 493cf41..acb8a1a 100644 --- a/app/components/main/footer.vue +++ b/app/components/main/footer.vue @@ -2,7 +2,7 @@ @@ -128,6 +134,10 @@ const isExternal = (url) => { return typeof url === "string" && /^https?:\/\//.test(url); }; +// runtime build info injected from nuxt.config at build time +const runtimeConfig = useRuntimeConfig(); +const build = runtimeConfig.public?.build || null; + onMounted(() => { if (showHitokoto) fetchHitokoto(); }); diff --git a/app/config/index.ts b/app/config/index.ts index 78b63cc..9e5db92 100644 --- a/app/config/index.ts +++ b/app/config/index.ts @@ -92,7 +92,7 @@ const siteConfig: SiteConfig = { }, ad: { - enable: true, + enable: false, ads: [ { body: '
本网站由
提供云存储服务