tpl: Fix reflect
authorCameron Moore <moorereason@gmail.com>
Fri, 28 Dec 2018 09:41:46 +0000 (03:41 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 28 Dec 2018 09:41:46 +0000 (10:41 +0100)
Fixes #5564

docs/content/en/functions/reflect.IsMap.md
docs/content/en/functions/reflect.IsSlice.md
tpl/tplimpl/template_funcs.go

index 484ec4838b7c1c47b0a9d28979a812b0a85ee7e7..d75b842b4c7b7a379b35eeef09692ae6f58d86e4 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: reflect.IsMap
 description: Reports if a value is a map.
-draft: true
 godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
index b3d352ddfebeead94e47b32a6d888d23a286b974..27d6aea219cc50f33fd7fc771edade88dcffe20f 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: reflect.IsSlice
 description: Reports if a value is a slice.
-draft: true
 godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
index 09bb9381a26048a0ca556e51e3cd83e8fff7ec88..bbaf44ae2fda705e2d2985e260b2ce1f762032f3 100644 (file)
@@ -38,6 +38,7 @@ import (
        _ "github.com/gohugoio/hugo/tpl/os"
        _ "github.com/gohugoio/hugo/tpl/partials"
        _ "github.com/gohugoio/hugo/tpl/path"
+       _ "github.com/gohugoio/hugo/tpl/reflect"
        _ "github.com/gohugoio/hugo/tpl/resources"
        _ "github.com/gohugoio/hugo/tpl/safe"
        _ "github.com/gohugoio/hugo/tpl/site"