Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missed hugo.BuildDate on non-vcs build #14862

@catap

Description

@catap

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.161.1+extended+withdeploy openbsd/amd64 BuildDate=2026-05-11T00:14:36Z VendorInfo=OpenBSD

Does this issue reproduce with the latest release?

This hugo is built with -X github.com/gohugoio/hugo/common/hugo.buildDate=... which is very usual.

Unfortently but buildDate is propagated only to version string, and inside template hugo.BuildDate is empty.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions