hugo/common/maps
Gareth Watts 3400aff258 Allow cascade _target to work with non toml fm
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
2020-10-22 23:00:19 +02:00
..
maps.go Allow cascade _target to work with non toml fm 2020-10-22 23:00:19 +02:00
maps_get.go Simplify page tree logic 2019-08-08 20:13:39 +02:00
maps_test.go Allow cascade _target to work with non toml fm 2020-10-22 23:00:19 +02:00
params.go Fix Params case handling in the index, sort and where func 2019-11-22 18:41:50 +01:00
params_test.go Fix Params case handling in the index, sort and where func 2019-11-22 18:41:50 +01:00
scratch.go common/maps: Add Scratch.Values 2020-05-29 19:51:49 +02:00
scratch_test.go common/maps: Add Scratch.Values 2020-05-29 19:51:49 +02:00