diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-23 10:40:32 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-23 16:33:21 +0100 |
commit | a5744697971d296eb973e04e4259fe9e516b908f (patch) | |
tree | 488ed37ebfc8916b5cfcdaade249884aec7105c3 /hugolib/page_content.go | |
parent | 822dc627a1cfdf1f97882f27761675ac6ace7669 (diff) |
Add CSV support to transform.Unmarshal
Fixes #5555
Diffstat (limited to 'hugolib/page_content.go')
-rw-r--r-- | hugolib/page_content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page_content.go b/hugolib/page_content.go index af13d8a38..924400aea 100644 --- a/hugolib/page_content.go +++ b/hugolib/page_content.go @@ -91,7 +91,7 @@ Loop: result.Write(it.Val) case it.IsFrontMatter(): f := metadecoders.FormatFromFrontMatterType(it.Type) - m, err := metadecoders.UnmarshalToMap(it.Val, f) + m, err := metadecoders.Default.UnmarshalToMap(it.Val, f) if err != nil { if fe, ok := err.(herrors.FileError); ok { return herrors.ToFileErrorWithOffset(fe, iter.LineNumber()-1) |