mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
parent
2662faf61f
commit
ce524d0b5e
54 changed files with 436 additions and 108 deletions
|
@ -577,7 +577,7 @@ func (c *commandeer) serve(s *serverCmd) error {
|
|||
// to cached values if nil.
|
||||
templ, handler := getErrorTemplateAndHandler(c.hugoTry())
|
||||
b := &bytes.Buffer{}
|
||||
err := handler.Execute(templ, b, ctx)
|
||||
err := handler.ExecuteWithContext(context.Background(), templ, b, ctx)
|
||||
return b, err
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue