From c29d0668425ce1f47f33cd8afe5f7207884ff403 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 22 Aug 2016 22:45:29 +0100 Subject: [PATCH] make a little update --- frontmatter/frontmatter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontmatter/frontmatter.go b/frontmatter/frontmatter.go index 8b13e721..5703addc 100644 --- a/frontmatter/frontmatter.go +++ b/frontmatter/frontmatter.go @@ -193,10 +193,10 @@ func handleFlatValues(content interface{}, parent *Block, name string) *Block { c := new(Block) c.Parent = parent - switch reflect.ValueOf(content).Kind() { - case reflect.Bool: + switch content.(type) { + case bool: c.Type = "boolean" - case reflect.Int, reflect.Float32, reflect.Float64: + case int, float32, float64: c.Type = "number" default: c.Type = "string"