From: Cameron Moore Date: Fri, 28 Dec 2018 09:41:46 +0000 (-0600) Subject: tpl: Fix reflect X-Git-Tag: v0.54.0~32 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9e4f9e0bb69276e9bca0dfbdbc7aefbf5f6fc9e5;p=brevno-suite%2Fhugo tpl: Fix reflect Fixes #5564 --- diff --git a/docs/content/en/functions/reflect.IsMap.md b/docs/content/en/functions/reflect.IsMap.md index 484ec483..d75b842b 100644 --- a/docs/content/en/functions/reflect.IsMap.md +++ b/docs/content/en/functions/reflect.IsMap.md @@ -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 diff --git a/docs/content/en/functions/reflect.IsSlice.md b/docs/content/en/functions/reflect.IsSlice.md index b3d352dd..27d6aea2 100644 --- a/docs/content/en/functions/reflect.IsSlice.md +++ b/docs/content/en/functions/reflect.IsSlice.md @@ -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 diff --git a/tpl/tplimpl/template_funcs.go b/tpl/tplimpl/template_funcs.go index 09bb9381..bbaf44ae 100644 --- a/tpl/tplimpl/template_funcs.go +++ b/tpl/tplimpl/template_funcs.go @@ -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"