diff --git a/content/document.ts b/content/document.ts index 3ebb11d99120..a652bc077e71 100644 --- a/content/document.ts +++ b/content/document.ts @@ -13,6 +13,7 @@ import { } from "../libs/env/index.js"; import { ACTIVE_LOCALES, + DEFAULT_LOCALE, HTML_FILENAME, MARKDOWN_FILENAME, VALID_LOCALES, @@ -302,8 +303,10 @@ export const read = memoize( // The last-modified is always coming from the git logs. Independent of // which root it is. - const gitHistory = getGitHistories(root, locale).get( - path.relative(root, filePath) + const gitHistoryRoot = locale === "de" ? CONTENT_ROOT : root; + const gitHistoryLocale = locale === "de" ? DEFAULT_LOCALE : locale; + const gitHistory = getGitHistories(gitHistoryRoot, gitHistoryLocale).get( + path.relative(gitHistoryRoot, filePath) ); let modified = null; let hash = null;