commit 9e4f9e0bb69276e9bca0dfbdbc7aefbf5f6fc9e5
parent 3f3187de0f62107da19d9341aebd1d8414bff0ea
Author: Cameron Moore <moorereason@gmail.com>
Date: Fri, 28 Dec 2018 03:41:46 -0600
tpl: Fix reflect
Fixes #5564
Diffstat:
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
@@ -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
@@ -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
@@ -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"