From 111fe2808cad9fc5f8f007021bd1559417ef8a98 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:33:43 +0530 Subject: [PATCH] Update docs/en/reference/default-theme-last-updated.md --- docs/en/reference/default-theme-last-updated.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/default-theme-last-updated.md b/docs/en/reference/default-theme-last-updated.md index 94566c51..55603269 100644 --- a/docs/en/reference/default-theme-last-updated.md +++ b/docs/en/reference/default-theme-last-updated.md @@ -2,7 +2,7 @@ The update time of the last content will be displayed in the lower right corner of the page. To enable it, add `lastUpdated` options to your config. -::: tip +::: info VitePress displays the "last updated" time using the timestamp of the most recent Git commit for each file. To enable this, the Markdown file must be committed to Git. Internally, VitePress runs `git log -1 --pretty="%ai"` on each file to retrieve its timestamp. If all pages show the same update time, it's likely due to shallow cloning (common in CI environments), which limits Git history.