description: Show the last updated timestamp on VitePress pages based on Git commit history.
description: Zeige den Zeitpunkt der letzten Aktualisierung von VitePress-Seiten anhand der Git-Commit-Historie an.
---
---
# Letzte Aktualisierung
# Letzte Aktualisierung
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.
Der Aktualisierungszeitpunkt des letzten Inhalts wird unten rechts auf der Seite angezeigt. Füge zum Aktivieren die Option `lastUpdated` zu deiner Konfiguration hinzu.
::: info
::: 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.
VitePress zeigt den Zeitpunkt der letzten Aktualisierung anhand des Zeitstempels des neuesten Git-Commits für jede Datei an. Dafür muss die Markdown-Datei in Git committed sein.
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.
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.
@ -20,16 +20,16 @@ To fix this in **GitHub Actions**, use the following in your workflow:
fetch-depth: 0
fetch-depth: 0
```
```
Other CI/CD platforms have similar settings.
Andere CI/CD-Plattformen verfügen über ähnliche Einstellungen.
If such options aren't verfügbar, you can prepend the `docs:build` command in your `package.json` with a manual fetch:
Wenn solche Optionen nicht verfügbar sind, kannst du dem Befehl `docs:build` in deiner `package.json` einen manuellen Abruf voranstellen:
Dies can be deaktiviert per-page using the `lastUpdated` option on frontmatter:
Dies can be deaktiviert per-page using the `lastUpdated` option on frontmatter:
@ -47,4 +47,4 @@ lastUpdated: false
---
---
```
```
Also refer [Standard-Theme: Letzte Aktualisierung](./Standard-theme-config#lastupdated) for more details. Any truthy value at theme-level will also enable the feature unless explicitly deaktiviert at site or page level.
Weitere Informationen findest du unter [Standard-Theme: Letzte Aktualisierung](./Standard-theme-config#lastupdated) for more details. Any truthy value at theme-level will also enable the feature unless explicitly deaktiviert at site or page level.