Invalid front matter: Bool ERROR

I have ERROR invalid front matter: published: %!!(MISSING)s(bool=true)

I don’t know where the problem is with Hugo 0.136.0.

This is the front matter I’m using:

---
layout: blog
published: true
status: publish
url: /about-us/
---

Any issue here?

The published front matter field is aliased to publishDate. With v0.135.0 and later we validate the four predefined date fields for either date/time values (TOML) or parsable strings (TOML, YAML, or JSON). This change addresses Issue #10717.

To avoid collisions, create a custom field under the params key:

---
layout: blog
status: publish
url: /about-us/
params:
  published: true
---

The error message is improved in the next release.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.