Skip to content

Bug: TOML Front Matter Parsing Errors with Leading Zeros #448

@codeEvolveZenith345

Description

@codeEvolveZenith345

Description

The website fails to build with Hugo v0.123.7+ due to invalid TOML syntax in blog post front matter. Multiple markdown files contain dateday fields with leading zeros (e.g., dateday = 07), which violate TOML v1.0.0 specification and cause build failures.

Steps to reproduce the issue

  1. Clone the website repository
  2. Install Hugo v0.123.7 or later
  3. Run hugo server -D from the website directory
  4. Build fails with TOML parsing errors

Describe the results you received and expected

Received: Build error: "unmarshal failed: toml: expected newline but got U+0037 '7'"

Expected: Website builds successfully without errors.

Root cause: Leading zeros in integers (e.g., dateday = 07) are ambiguous in TOML v1.0.0 (octal notation) and rejected by modern Hugo versions.

Affected files:

  • content/en/blog/how-volcano-boosts-distributed-training-and-inference-performance.md
  • content/en/blog/Volcano-1.11.0-release.md
  • content/en/blog/Meet Cloud Native Batch Computing with Volcano in AI & Big Data Scenarios.md
  • content/zh/blog/kube-batch-customers.md
  • content/zh/blog/Quick-Start-Volcano.md
  • content/zh/blog/Volcano-1.11.0-release.md
  • content/zh/blog/kube-batch-startup.md

What version of Volcano are you using?

N/A - This is a website repository issue (Hugo static site)

Any other relevant information

Hugo Version: v0.123.7+extended
Repository: volcano-sh/website
Fix: Remove leading zeros from dateday values in TOML front matter

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions