diff --git a/es/organize/pages.mdx b/es/organize/pages.mdx index 71f3a9339..50d53a0fb 100644 --- a/es/organize/pages.mdx +++ b/es/organize/pages.mdx @@ -243,6 +243,8 @@ Muestra una marca de tiempo «Última modificación el [fecha]» en todas las p } ``` +En despliegues respaldados por GitHub o GitLab, la fecha mostrada es la del último commit de git que modificó el archivo de origen de la página. Si no hay una fecha de commit de git disponible, por ejemplo, en despliegues que no están conectados a GitHub o GitLab, la fecha recurre a la marca de tiempo del despliegue más reciente. + Para anular la configuración global de la marca de tiempo en una página individual, usa el campo `timestamp` del frontmatter. Usa este campo para mostrar u ocultar las marcas de tiempo en páginas específicas. ```yaml diff --git a/es/organize/settings-reference.mdx b/es/organize/settings-reference.mdx index 5e7330e36..83145d234 100644 --- a/es/organize/settings-reference.mdx +++ b/es/organize/settings-reference.mdx @@ -696,7 +696,7 @@ Configuración global de metadatos de página. #### `metadata.timestamp` -Muestra una fecha de última modificación en todas las páginas. +Muestra una fecha de última modificación en todas las páginas. En despliegues respaldados por GitHub o GitLab, la fecha refleja el último commit de git que modificó el archivo de origen de cada página, y recurre a la marca de tiempo del despliegue más reciente cuando no hay una fecha de commit de git disponible. **Tipo:** boolean **Predeterminado:** `false` diff --git a/fr/organize/pages.mdx b/fr/organize/pages.mdx index e8ee4f766..db82f1f37 100644 --- a/fr/organize/pages.mdx +++ b/fr/organize/pages.mdx @@ -242,6 +242,8 @@ Affichez la mention « Dernière modification le [date] » sur toutes les pages } ``` +Pour les déploiements adossés à GitHub ou GitLab, la date affichée correspond à celle du dernier commit git ayant modifié le fichier source de la page. Si aucune date de commit git n’est disponible, par exemple sur des déploiements qui ne sont pas connectés à GitHub ou GitLab, la date utilise par défaut l’horodatage du dernier déploiement. + Pour remplacer le paramètre global d’horodatage pour une page individuelle, utilisez le champ de frontmatter `timestamp`. Utilisez ce champ pour afficher ou masquer les horodatages sur des pages spécifiques. ```yaml diff --git a/fr/organize/settings-reference.mdx b/fr/organize/settings-reference.mdx index 7d19a08c1..2728ac495 100644 --- a/fr/organize/settings-reference.mdx +++ b/fr/organize/settings-reference.mdx @@ -696,7 +696,7 @@ Paramètres globaux de métadonnées de page. #### `metadata.timestamp` -Affiche une date de dernière modification sur toutes les pages. +Affiche une date de dernière modification sur toutes les pages. Pour les déploiements adossés à GitHub ou GitLab, la date reflète le dernier commit git ayant modifié le fichier source de chaque page, et utilise par défaut l’horodatage du dernier déploiement lorsqu’aucune date de commit git n’est disponible. **Type :** boolean **Défaut :** `false` diff --git a/organize/pages.mdx b/organize/pages.mdx index 1ff59f5ed..879972191 100644 --- a/organize/pages.mdx +++ b/organize/pages.mdx @@ -217,6 +217,8 @@ Show a "Last modified on [date]" timestamp on all pages by enabling `metadata.ti } ``` +For deployments backed by GitHub or GitLab, the displayed date is the date of the last Git commit that modified the page's source file. If a Git commit date isn't available, the date falls back to the most recent deployment timestamp. + To override the global timestamp setting for an individual page, use the `timestamp` frontmatter field. Use this field to show or hide timestamps on specific pages. ```yaml diff --git a/organize/settings-reference.mdx b/organize/settings-reference.mdx index c9b41a2f8..cfdb22d88 100644 --- a/organize/settings-reference.mdx +++ b/organize/settings-reference.mdx @@ -694,7 +694,7 @@ Global page metadata settings. #### `metadata.timestamp` -Display a last-modified date on all pages. +Display a last-modified date on all pages. For deployments backed by GitHub or GitLab, the date reflects the last Git commit that touched a page's source file, and falls back to the most recent deployment timestamp if a Git commit date isn't available. **Type:** boolean **Default:** `false` diff --git a/zh/organize/pages.mdx b/zh/organize/pages.mdx index af6a474c4..e64e9eb7f 100644 --- a/zh/organize/pages.mdx +++ b/zh/organize/pages.mdx @@ -242,6 +242,8 @@ keywords: ['配置', '设置', '入门指南'] } ``` +对于由 GitHub 或 GitLab 支持的部署,显示的日期是最后一次修改页面源文件的 git 提交日期。如果无法获取 git 提交日期(例如部署未连接到 GitHub 或 GitLab),日期将回退为最近一次部署的时间戳。 + 你可以在单个页面上使用 frontmatter 中的 `timestamp` 字段来覆盖全局时间戳设置。使用该字段可在特定页面上选择性地显示或隐藏时间戳。 ```yaml diff --git a/zh/organize/settings-reference.mdx b/zh/organize/settings-reference.mdx index 3521597c3..3a90e0db3 100644 --- a/zh/organize/settings-reference.mdx +++ b/zh/organize/settings-reference.mdx @@ -461,7 +461,7 @@ keywords: ["docs.json", "schema", "参考", "配置", "所有设置", "属性", #### `metadata.timestamp` -在所有页面上显示最后修改日期。 +在所有页面上显示最后修改日期。对于由 GitHub 或 GitLab 支持的部署,日期反映最后一次修改页面源文件的 git 提交时间;当无法获取 git 提交日期时,将回退为最近一次部署的时间戳。 **类型:** boolean **默认值:** `false`