Age | Commit message (Collapse) | Author |
|
Fixes #10707
Fixes #11507
|
|
See https://github.com/golang/go/issues?q=milestone%3AGo1.21.1+label%3ACherryPickApproved
Fixes #11474
Fixes #11414
|
|
Fixes #11351
|
|
https://pkg.go.dev/io/ioutil is deprecated since Go 1.16.
|
|
Updates #10691
|
|
Closes #10411
|
|
break }}" bug
|
|
Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774
Updates #9677
|
|
|
|
The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo.
Updates #7293
|
|
|
|
|
|
|
|
See https://github.com/mvdan/gofumpt
|
|
Fixes #6695
|
|
Fixes #6615
|
|
This commit also
* revises the change detection for templates used by content files in server mode.
* Adds a Page.RenderString method
Fixes #6545
Fixes #4663
Closes #6043
|
|
This is a big commit, but it deletes lots of code and simplifies a lot.
* Resolving the template funcs at execution time means we don't have to create template clones per site
* Having a custom map resolver means that we can remove the AST lower case transformation for the special lower case Params map
Not only is the above easier to reason about, it's also faster, especially if you have more than one language, as in the benchmark below:
```
name old time/op new time/op delta
SiteNew/Deep_content_tree-16 53.7ms ± 0% 48.1ms ± 2% -10.38% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Deep_content_tree-16 41.0MB ± 0% 36.8MB ± 0% -10.26% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Deep_content_tree-16 481k ± 0% 410k ± 0% -14.66% (p=0.029 n=4+4)
```
This should be even better if you also have lots of templates.
Closes #6594
|
|
This commit also removes support for Ace and Amber templates.
Updates #6594
|