You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Hugo are you using (hugo version)?
$ hugo version
Hugo Static Site Generator v0.76.5/extended darwin/amd64 BuildDate: unknown
Does this issue reproduce with the latest release?
Yes (and with master)
Defining a cascade with the new _target discriminator (#7782) using TOML for the frontmatter works as expected, using other formats such as YAML causes the cascade to be ignored completely
This appears to be due to the way that the TOML library unmarshals slices. I have a fix working locally; will open a PR shortly
The text was updated successfully, but these errors were encountered:
gwatts
added a commit
to gwatts/hugo
that referenced
this issue
Oct 22, 2020
TOML unmarshals slices of string maps to []map[string]interface{}
whereas YAML and JSON decode to []interface{}
The existing tests only check for TOML working correctly, and _target
did not work at all for frontmatter defined in other formats.
Add a function to normalize those slices
Fixesgohugoio#7874
gwatts
added a commit
to gwatts/hugo
that referenced
this issue
Oct 22, 2020
The TOML lib unmarshals slices of string maps to []map[string]interface{}
whereas YAML and JSON decode to []interface{}
The existing tests only check for TOML working correctly, and _target
with cascade did not work at all for frontmatter defined in other formats.
Add a function to normalize those slices
Fixesgohugoio#7874
The TOML lib unmarshals slices of string maps to []map[string]interface{}
whereas YAML and JSON decode to []interface{}
The existing tests only check for TOML working correctly, and _target
with cascade did not work at all for frontmatter defined in other formats.
Add a function to normalize those slices
Fixes#7874
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes (and with
master
)Defining a cascade with the new
_target
discriminator (#7782) using TOML for the frontmatter works as expected, using other formats such as YAML causes the cascade to be ignored completelyThis appears to be due to the way that the TOML library unmarshals slices. I have a fix working locally; will open a PR shortly
The text was updated successfully, but these errors were encountered: