diff --git a/docs/de/reference/default-theme-last-updated.md b/docs/de/reference/default-theme-last-updated.md index 2a3538846..a57e1ae55 100644 --- a/docs/de/reference/default-theme-last-updated.md +++ b/docs/de/reference/default-theme-last-updated.md @@ -1,13 +1,13 @@ --- -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 -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 -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. @@ -20,16 +20,16 @@ To fix this in **GitHub Actions**, use the following in your workflow: 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: ```json "docs:build": "git fetch --unshallow && vitepress build docs" ``` ::: -## Site-Level Config +## Websiteweite Konfiguration ```js export default { @@ -37,7 +37,7 @@ export default { } ``` -## Frontmatter Config +## Frontmatter-Konfiguration 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.