diff options
Diffstat (limited to 'hugolib/alias.go')
-rw-r--r-- | hugolib/alias.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/alias.go b/hugolib/alias.go index 5165edb04..08d57a8bc 100644 --- a/hugolib/alias.go +++ b/hugolib/alias.go @@ -64,7 +64,7 @@ func (a aliasHandler) renderAlias(permalink string, p page.Page) (io.Reader, err p, } - ctx := tpl.SetPageInContext(context.Background(), p) + ctx := tpl.Context.Page.Set(context.Background(), p) buffer := new(bytes.Buffer) err := a.t.ExecuteWithContext(ctx, templ, buffer, data) |