mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-02 22:52:51 +02:00
@@ -23,7 +23,6 @@ import (
|
||||
"github.com/spf13/hugo/deps"
|
||||
"github.com/spf13/hugo/tpl/collections"
|
||||
"github.com/spf13/hugo/tpl/crypto"
|
||||
"github.com/spf13/hugo/tpl/data"
|
||||
"github.com/spf13/hugo/tpl/encoding"
|
||||
"github.com/spf13/hugo/tpl/images"
|
||||
"github.com/spf13/hugo/tpl/inflect"
|
||||
@@ -42,7 +41,6 @@ type templateFuncster struct {
|
||||
// Namespaces
|
||||
collections *collections.Namespace
|
||||
crypto *crypto.Namespace
|
||||
data *data.Namespace
|
||||
encoding *encoding.Namespace
|
||||
images *images.Namespace
|
||||
inflect *inflect.Namespace
|
||||
@@ -63,7 +61,6 @@ func newTemplateFuncster(deps *deps.Deps) *templateFuncster {
|
||||
// Namespaces
|
||||
collections: collections.New(deps),
|
||||
crypto: crypto.New(),
|
||||
data: data.New(deps),
|
||||
encoding: encoding.New(),
|
||||
images: images.New(deps),
|
||||
inflect: inflect.New(),
|
||||
|
@@ -25,6 +25,7 @@ import (
|
||||
"github.com/spf13/hugo/tpl/internal"
|
||||
|
||||
// Init the namespaces
|
||||
_ "github.com/spf13/hugo/tpl/data"
|
||||
_ "github.com/spf13/hugo/tpl/lang"
|
||||
_ "github.com/spf13/hugo/tpl/math"
|
||||
_ "github.com/spf13/hugo/tpl/strings"
|
||||
@@ -107,8 +108,6 @@ func (t *templateFuncster) initFuncMap() {
|
||||
"eq": compare.Eq,
|
||||
"first": t.collections.First,
|
||||
"ge": compare.Ge,
|
||||
"getCSV": t.data.GetCSV,
|
||||
"getJSON": t.data.GetJSON,
|
||||
"getenv": t.os.Getenv,
|
||||
"gt": compare.Gt,
|
||||
"highlight": t.transform.Highlight,
|
||||
|
Reference in New Issue
Block a user