Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-16tpl: Pull in Go 1.18 patch that fixes the "no space in {{ continue }} and {{ ↵Bjørn Erik Pedersen
break }}" bug
2022-03-16tpl: Sync go_templates for Go 1.18Bjørn Erik Pedersen
Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774 Updates #9677
2021-02-18Pull in latest Go 1.16 template sourceBjørn Erik Pedersen
2021-02-18Add breaking tests for "map read and map write in templates"Bjørn Erik Pedersen
The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo. Updates #7293
2021-02-18Pull in latest Go template sourceBjørn Erik Pedersen
2021-02-18tpl/internal: Synch Go templates fork with Go 1.16devBjørn Erik Pedersen
2020-12-19Improve LookPathBjørn Erik Pedersen
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-05-23Fix Go template script escapingBjørn Erik Pedersen
Fixes #6695
2019-12-18tpl: Get rid of the custom template truth logicBjørn Erik Pedersen
Fixes #6615
2019-12-18Add render template hooks for links and imagesBjørn Erik Pedersen
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
2019-12-12Rework template handling for function and map lookupsBjørn Erik Pedersen
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
2019-12-12Create lightweight forks of text/template and html/templateBjørn Erik Pedersen
This commit also removes support for Ace and Amber templates. Updates #6594