summaryrefslogtreecommitdiffstats
path: root/parser/frontmatter.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-18 10:21:23 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-22 20:46:13 +0200
commit1e3e34002dae3d4a980141efcc86886e7de5bef8 (patch)
tree1c94049787d5e1076c5044662846ae3a586c5722 /parser/frontmatter.go
parent1b7ecfc2e176315b69914756c70b46306561e4d1 (diff)
hugolib: Integrate new page parser
See #5324
Diffstat (limited to 'parser/frontmatter.go')
-rw-r--r--parser/frontmatter.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go
index 3716dc112..284d3f955 100644
--- a/parser/frontmatter.go
+++ b/parser/frontmatter.go
@@ -203,6 +203,7 @@ func removeTOMLIdentifier(datum []byte) []byte {
// HandleYAMLMetaData unmarshals YAML-encoded datum and returns a Go interface
// representing the encoded data structure.
+// TODO(bep) 2errors remove these handlers (and hopefully package)
func HandleYAMLMetaData(datum []byte) (map[string]interface{}, error) {
m := map[string]interface{}{}
err := yaml.Unmarshal(datum, &m)