diff --git a/es/organize/pages.mdx b/es/organize/pages.mdx index a20989d0d..3813f4b32 100644 --- a/es/organize/pages.mdx +++ b/es/organize/pages.mdx @@ -288,6 +288,17 @@ lastUpdatedDate: "2026-08-13" --- ``` +Para establecer la fecha mostrada de forma explícita, usa el campo `lastUpdatedDate` del frontmatter. Esto resulta útil cuando el historial de commits de Git no refleja cuándo se actualizó realmente el contenido, por ejemplo, en documentación sincronizada desde otro sistema. Usa un valor de solo fecha o una marca de tiempo ISO 8601. + +```yaml +--- +title: "Título de la página" +lastUpdatedDate: 2026-07-22 +--- +``` + +La fecha mostrada sigue esta precedencia: el frontmatter `lastUpdatedDate`, luego la fecha del último commit de Git y, por último, la marca de tiempo del despliegue más reciente. Los valores `lastUpdatedDate` no válidos o vacíos se reemplazan por la fecha del commit de Git. + 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 213dd11b7..5be3d04b0 100644 --- a/es/organize/settings-reference.mdx +++ b/es/organize/settings-reference.mdx @@ -713,6 +713,8 @@ Configuración global de metadatos de página. 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. +Establece el campo `lastUpdatedDate` en el frontmatter de una página para anular la fecha automática. Consulta [Páginas](/es/organize/pages#last-modified-timestamp) para más detalles. + **Tipo:** boolean **Predeterminado:** `false` diff --git a/fr/organize/pages.mdx b/fr/organize/pages.mdx index 7b78864a6..a4ed94bfa 100644 --- a/fr/organize/pages.mdx +++ b/fr/organize/pages.mdx @@ -287,6 +287,17 @@ lastUpdatedDate: "2026-08-13" --- ``` +Pour définir explicitement la date affichée, utilisez le champ de frontmatter `lastUpdatedDate`. Cela est utile lorsque l’historique des commits git ne reflète pas la date réelle de mise à jour du contenu, par exemple pour de la documentation synchronisée depuis un autre système. Utilisez une valeur date seule ou un horodatage ISO 8601. + +```yaml +--- +title: "Titre de la page" +lastUpdatedDate: 2026-07-22 +--- +``` + +La date affichée suit l’ordre de priorité suivant : le frontmatter `lastUpdatedDate`, puis la date du dernier commit git, puis l’horodatage du dernier déploiement. Les valeurs `lastUpdatedDate` non valides ou vides sont ignorées au profit de la date du commit git. + 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 12261e67d..bc00e2f8e 100644 --- a/fr/organize/settings-reference.mdx +++ b/fr/organize/settings-reference.mdx @@ -713,6 +713,8 @@ Paramètres globaux de métadonnées de page. 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. +Définissez le champ `lastUpdatedDate` dans le frontmatter d’une page pour remplacer la date automatique. Voir [Pages](/fr/organize/pages#last-modified-timestamp) pour plus de détails. + **Type :** boolean **Défaut :** `false` diff --git a/organize/pages.mdx b/organize/pages.mdx index 2191144c4..94a09ce60 100644 --- a/organize/pages.mdx +++ b/organize/pages.mdx @@ -237,7 +237,7 @@ keywords: ['configuration', 'setup', 'getting started'] ## Last modified timestamp -Show a "Last modified on [date]" timestamp on all pages by enabling `metadata.timestamp` in your [global settings](/organize/settings-seo#metadata). +To display a "Last modified on [date]" timestamp on all pages, enable `metadata.timestamp` in your [global settings](/organize/settings-seo#metadata). This timestamp uses the date of the last Git commit that modified the page's source file. ```json docs.json "metadata": { @@ -245,28 +245,29 @@ Show a "Last modified on [date]" timestamp on all pages by enabling `metadata.ti } ``` -Mintlify determines the displayed date in the following order: - -1. The `lastUpdatedDate` frontmatter field, if set on the page. -2. For deployments backed by GitHub or GitLab, the date of the last Git commit that modified the page's source file. -3. The most recent deployment timestamp. - -To display a specific date instead of the Git commit date, set the `lastUpdatedDate` frontmatter field. Use this field when your Git history doesn't reflect when the content changed, such as content imported or synced from another system. +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 --- title: "Page title" -lastUpdatedDate: "2026-08-13" +timestamp: false --- ``` -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. +If you set `timestamp: true`, the page always shows the timestamp even if the global setting is `false`. If you set `timestamp: false`, the page hides the timestamp even if the global setting is `true`. + +To display a specific date instead of the Git commit date for an individual page, use the `lastUpdatedDate` frontmatter field. Use this field when your Git history doesn't reflect when the content changed, such as content imported or synced from another system. Use a date-only value or an ISO 8601 timestamp. + ```yaml --- title: "Page title" -timestamp: false +lastUpdatedDate: "2026-08-13" --- ``` -If you set `timestamp: true`, the page always shows the timestamp even if the global setting is `false`. If you set `timestamp: false`, the page hides the timestamp even if the global setting is `true`. +Mintlify determines the displayed date in the following order: + +1. The `lastUpdatedDate` frontmatter field, if set on the page. +2. For deployments backed by Git, the date of the last commit that modified the page's source file. +3. The most recent deployment timestamp. diff --git a/organize/settings-reference.mdx b/organize/settings-reference.mdx index bba26a987..1e4defea1 100644 --- a/organize/settings-reference.mdx +++ b/organize/settings-reference.mdx @@ -709,6 +709,8 @@ Global page metadata settings. 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. It falls back to the most recent deployment timestamp if a Git commit date isn't available. +Set the `lastUpdatedDate` frontmatter field on a page to override the automatic date. See [Pages](/organize/pages#last-modified-timestamp) for details. + **Type:** boolean **Default:** `false` diff --git a/zh/organize/pages.mdx b/zh/organize/pages.mdx index e2fc71dd6..d6fdd2f9a 100644 --- a/zh/organize/pages.mdx +++ b/zh/organize/pages.mdx @@ -287,6 +287,17 @@ lastUpdatedDate: "2026-08-13" --- ``` +若要显式设置显示的日期,请使用 frontmatter 中的 `lastUpdatedDate` 字段。当 Git 提交历史无法反映内容的真实更新时间时(例如从其他系统同步而来的文档),这一字段非常有用。可使用纯日期值或 ISO 8601 时间戳。 + +```yaml +--- +title: "页面标题" +lastUpdatedDate: 2026-07-22 +--- +``` + +显示日期的优先级如下:先使用 frontmatter 中的 `lastUpdatedDate`,其次使用最后一次 Git 提交日期,最后使用最近一次部署的时间戳。当 `lastUpdatedDate` 的值无效或为空时,会回退为 Git 提交日期。 + 你可以在单个页面上使用 frontmatter 中的 `timestamp` 字段来覆盖全局时间戳设置。使用该字段可在特定页面上选择性地显示或隐藏时间戳。 ```yaml diff --git a/zh/organize/settings-reference.mdx b/zh/organize/settings-reference.mdx index 88fff90c6..4378b6cb9 100644 --- a/zh/organize/settings-reference.mdx +++ b/zh/organize/settings-reference.mdx @@ -478,6 +478,8 @@ keywords: ["docs.json", "schema", "参考", "配置", "所有设置", "属性", 在所有页面上显示最后修改日期。对于由 GitHub 或 GitLab 支持的部署,日期反映最后一次修改页面源文件的 git 提交时间;当无法获取 git 提交日期时,将回退为最近一次部署的时间戳。 +在页面 frontmatter 中设置 `lastUpdatedDate` 字段可覆盖自动获取的日期。详情请参见[页面](/zh/organize/pages#last-modified-timestamp)。 + **类型:** boolean **默认值:** `false`