From 2b98888e1a492f11b1f6874f9c158484b993618e Mon Sep 17 00:00:00 2001 From: linhieng <790728740@qq.com> Date: Sun, 14 Apr 2024 16:16:48 +0800 Subject: [PATCH] cd: Add the last update time by the way --- .github/workflows/deploy.yml | 2 +- .vitepress/config.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bec5970..9d91da4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,7 +36,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: npm + # cache: npm 难道开启缓存,需要 lock 文件? - name: Setup Pages uses: actions/configure-pages@v4 - name: Install dependencies diff --git a/.vitepress/config.mjs b/.vitepress/config.mjs index d4e57ee..cced71e 100644 --- a/.vitepress/config.mjs +++ b/.vitepress/config.mjs @@ -70,6 +70,7 @@ export default defineConfig({ themeConfig: { nav: getNav(), sidebar: getSideBar(), + lastUpdated: true, editLink: { text: '在 Github 上查看此页',