From 9e4f9e0bb69276e9bca0dfbdbc7aefbf5f6fc9e5 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Fri, 28 Dec 2018 03:41:46 -0600 Subject: [PATCH] tpl: Fix reflect Fixes #5564 --- docs/content/en/functions/reflect.IsMap.md | 1 - docs/content/en/functions/reflect.IsSlice.md | 1 - tpl/tplimpl/template_funcs.go | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/content/en/functions/reflect.IsMap.md b/docs/content/en/functions/reflect.IsMap.md index 484ec4838..d75b842b4 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 b3d352ddf..27d6aea21 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 09bb9381a..bbaf44ae2 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"