website icon indicating copy to clipboard operation
website copied to clipboard

Bug: TOML Front Matter Parsing Errors with Leading Zeros

Open lakxy opened this issue 10 months ago • 1 comments

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

lakxy avatar Jan 21 '26 11:01 lakxy

/assign

lakxy avatar Jan 21 '26 11:01 lakxy