From 66eee712b24dc77d32dc1b1e34f305cdbb8cdef9 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 26 Aug 2025 07:25:12 -0700 Subject: [PATCH] content: Update front matter configuration example --- content/en/configuration/front-matter.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/en/configuration/front-matter.md b/content/en/configuration/front-matter.md index a97648b61..edffd302d 100644 --- a/content/en/configuration/front-matter.md +++ b/content/en/configuration/front-matter.md @@ -90,10 +90,11 @@ Consider this site configuration: {{< code-toggle file=hugo >}} [frontmatter] date = [':filename', ':default'] +publishDate = [':filename', ':default'] lastmod = ['lastmod', ':fileModTime'] {{< /code-toggle >}} -To determine `date`, Hugo tries to extract the date from the file name, falling back to the default ordered sequence of date fields. +To determine `date` and `publishDate`, Hugo tries to extract the value from the file name, falling back to the default ordered sequence of date fields. To determine `lastmod`, Hugo looks for a `lastmod` field in front matter, falling back to the file's last modification timestamp.