Skip to content

Commit

Permalink
tpl/hugo: Use the correct Hugo var
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Dec 6, 2018
1 parent 8378358 commit 931a132
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tpl/hugo/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package site

import (
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/htesting"
"github.com/gohugoio/hugo/tpl/internal"
)

Expand All @@ -24,7 +23,7 @@ const name = "hugo"
func init() {
f := func(d *deps.Deps) *internal.TemplateFuncsNamespace {

h := htesting.NewTestHugoSite().Hugo()
h := d.Site.Hugo()

ns := &internal.TemplateFuncsNamespace{
Name: name,
Expand Down

0 comments on commit 931a132

Please sign in to comment.