hugo/tpl
Bjørn Erik Pedersen ee359df172 Fix upstream Go templates bug with reversed key/value assignment
The template packages are based on go1.20.5 with the patch in befec5ddbbfbd81ec84e74e15a38044d67f8785b  added.

This also includes a security fix that now disallows Go template actions in JS literals (inside backticks).

This will throw an error saying "... appears in a JS template literal".

If you're really sure this isn't a security risk in your case, you can revert to the old behaviour:

```toml
[security]
[security.gotemplates]
allowActionJSTmpl = true
```

See https://github.com/golang/go/issues/59234

Fixes #11112
2023-06-15 23:04:33 +02:00
..
cast Add hugo.WorkingDir 2023-05-20 17:45:56 +02:00
collections tpl/collections: Fix append when appending a slice to a slice of slices 2023-06-14 20:18:54 +02:00
compare all: Fix comments for exported functions and packages 2023-05-18 21:25:27 +02:00
crypto Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
css Add a page template func 2023-02-25 19:53:18 +01:00
data Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
debug tpl/debug: Add VisualizeSpaces 2023-04-20 11:27:55 +02:00
diagrams Add a page template func 2023-02-25 19:53:18 +01:00
encoding Add a page template func 2023-02-25 19:53:18 +01:00
fmt Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
hugo Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
images Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
inflect Add a page template func 2023-02-25 19:53:18 +01:00
internal Fix upstream Go templates bug with reversed key/value assignment 2023-06-15 23:04:33 +02:00
js Add a page template func 2023-02-25 19:53:18 +01:00
lang tpl/lang: document delimiter option for FormatNumberCustom 2023-05-17 23:35:43 +02:00
math tpl/math: Allow variadic math functions to take slice args, add math.Product, math.Sum 2023-06-13 20:00:00 +02:00
openapi Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
os Add a page template func 2023-02-25 19:53:18 +01:00
page Allow page.TableOfContents on self in shortcode 2023-03-05 12:51:57 +01:00
partials Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
path Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
reflect Add a page template func 2023-02-25 19:53:18 +01:00
resources resources.functions: improve validation 2023-03-20 14:53:57 +01:00
safe Add a page template func 2023-02-25 19:53:18 +01:00
site Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
strings Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
templates Run gofmt -s on source files 2023-03-12 10:32:29 +01:00
time Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
tplimpl Fix upstream Go templates bug with reversed key/value assignment 2023-06-15 23:04:33 +02:00
transform markup: Fix typo in function and struct names 2023-06-01 17:59:44 +02:00
urls tpl/urls: Return empty string when JoinPath has zero args 2023-05-20 11:14:18 +02:00
template.go Fix upstream Go templates bug with reversed key/value assignment 2023-06-15 23:04:33 +02:00
template_info.go Add --printUnusedTemplates 2022-02-15 20:01:57 +01:00
template_test.go Fix Plainify edge cases 2022-05-25 17:55:23 +02:00