Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-10-21 | tpl/debug: Add average and median to timer output | Bjørn Erik Pedersen | |
2023-10-20 | tpl/debug: Add debug.Timer | Bjørn Erik Pedersen | |
Closes #11580 | |||
2023-10-18 | hugolib: Deprecate .Site.DisqusShortname | Joe Mooring | |
Use .Site.Config.Services.Disqus.Shortname instead. | |||
2023-10-18 | tpl/tplimpl: Fix dropped error | Lars Lehtonen | |
2023-10-17 | hugolib: Deprecate .Site.GoogleAnalytics | Joe Mooring | |
Use .Site.Config.Services.GoogleAnalytics.ID instead. | |||
2023-10-17 | tpl/tplimpl: Deprecate .Site.Author usage in RSS template | Joe Mooring | |
2023-10-17 | tpl/tplimpl: Deprecate .Site.Social usage with internal templates | Joe Mooring | |
2023-10-05 | all: Format files with gofmt | Oleksandr Redko | |
2023-09-27 | tpl/lang: Formally deprecate lang.NumFmt | Joe Mooring | |
Use lang.FormatNumberCustom instead. | |||
2023-09-27 | tpl/collections: Fix and deprecate echoParams | Joe Mooring | |
Fixes #11498 | |||
2023-09-23 | google_analytics_async.html: Add deprecation warning | Carl Johnson | |
2023-09-21 | Upgrade to Go 1.21.1 | Bjørn Erik Pedersen | |
See https://github.com/golang/go/issues?q=milestone%3AGo1.21.1+label%3ACherryPickApproved Fixes #11474 Fixes #11414 | |||
2023-08-23 | Go 1.21 Upgrade | Bjørn Erik Pedersen | |
Fixes #11351 | |||
2023-08-03 | Add Page.RenderShortcodes | Bjørn Erik Pedersen | |
A layouts/shortcodes/include.html shortcode may look like this: ```html {{ $p := site.GetPage (.Get 0) }} {{ $p.RenderShortcodes }} ``` Fixes #7297 | |||
2023-07-28 | tpl/collections: Add BenchmarkWhereOps | Bjørn Erik Pedersen | |
``` BenchmarkWhereOps/eq-10 8702 120410 ns/op 52280 B/op 2515 allocs/op BenchmarkWhereOps/ne-10 9829 120759 ns/op 52280 B/op 2515 allocs/op BenchmarkWhereOps/like-10 6754 176377 ns/op 52917 B/op 2515 allocs/op ``` | |||
2023-07-28 | tpl/collections: Add like operator to where function | Joe Mooring | |
Closes #11279 | |||
2023-07-28 | tpl/collections: Fix description of apply function | Joe Mooring | |
The collections.Apply template function cannot be used with maps. | |||
2023-07-27 | Add a common regexp cache | Bjørn Erik Pedersen | |
``` BenchmarkGetOrCompileRegexp-10 73959368 13.71 ns/op 0 B/op 0 allocs/op BenchmarkCompileRegexp-10 3143529 380.1 ns/op 872 B/op 10 allocs/op ``` | |||
2023-07-11 | tpl/collections: Fix WordCount (etc.) regression in Where, Sort, Delimit | Bjørn Erik Pedersen | |
Fixes #11234 | |||
2023-07-08 | Make imageConfig work with modules | Bjørn Erik Pedersen | |
Fixes #11205 | |||
2023-06-28 | Fix output formats and media type per language config regression | Bjørn Erik Pedersen | |
Fixes #11159 | |||
2023-06-28 | common/collections: Fix append regression to allow appending nil | khayyam | |
Closes #11180 | |||
2023-06-26 | tpl/tplimpl: Fix typo in global variable name | Oleksandr Redko | |
2023-06-18 | Replace the old log setup, with structured logging etc. | Bjørn Erik Pedersen | |
Fixes #11124 | |||
2023-06-15 | Fix upstream Go templates bug with reversed key/value assignment | Bjørn Erik Pedersen | |
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-14 | tpl/collections: Fix append when appending a slice to a slice of slices | Bjørn Erik Pedersen | |
Fixes #11093 | |||
2023-06-13 | tpl/math: Allow variadic math functions to take slice args, add ↵ | Bjørn Erik Pedersen | |
math.Product, math.Sum * Update math.Min and math.Max to allow 1 or more args, either scalar or slice, or combination of the two * Add math.Sum (allow 1 or more args, either scalar or slice, or combination of the two) * Add math.Product (allow 1 or more args, either scalar or slice, or combination of the two) Fixes #11030 | |||
2023-06-01 | markup: Fix typo in function and struct names | Oleksandr Redko | |
2023-06-01 | all: Replace deprecated ioutil with io and os | Oleksandr Redko | |
2023-05-30 | tpl/tplimpl: Use .Language.LanguageCode in built-in templates | Joe Mooring | |
2023-05-29 | Fix potential deadlock in ByParam | Bjørn Erik Pedersen | |
Fixes #11039 | |||
2023-05-22 | docs: Regen docshelper | Bjørn Erik Pedersen | |
2023-05-21 | tpl/tplimpl: Add img loading attribute to figure shortcode (#10927) | InLaw | |
2023-05-20 | Add hugo.WorkingDir | Bjørn Erik Pedersen | |
Fixes #10969 | |||
2023-05-20 | tpl/urls: Return empty string when JoinPath has zero args | Joe Mooring | |
2023-05-19 | tpl/urls: Fix build broken by a merge | Bjørn Erik Pedersen | |
2023-05-19 | tpl/urls: Add JoinPath template function | Joe Mooring | |
See https://pkg.go.dev/net/url#JoinPath Closes #9694 | |||
2023-05-18 | all: Fix comments for exported functions and packages | Oleksandr Redko | |
2023-05-17 | tpl/lang: document delimiter option for FormatNumberCustom | Joe Mooring | |
Closes gohugoio/hugoDocs#1760 | |||
2023-05-16 | tpl: Add math.Abs | Oleksandr Redko | |
Fixes #10941. | |||
2023-05-16 | Create a struct with all of Hugo's config options | Bjørn Erik Pedersen | |
Primary motivation is documentation, but it will also hopefully simplify the code. Also, * Lower case the default output format names; this is in line with the custom ones (map keys) and how it's treated all the places. This avoids doing `stringds.EqualFold` everywhere. Closes #10896 Closes #10620 | |||
2023-04-27 | tpl/strings: Clarify findRESubmatch description | Joe Mooring | |
2023-04-20 | tpl/debug: Add VisualizeSpaces | Bjørn Erik Pedersen | |
2023-03-20 | resources.functions: improve validation | Andreas Deininger | |
2023-03-14 | tpl/math: Return error if less than 2 input numbers | septs | |
Fixes #10827 | |||
2023-03-12 | Run gofmt -s on source files | Andreas Deininger | |
2023-03-11 | tpl/math: Allow multi numbers in add, sub, mul, div, min and max | septs | |
2023-03-08 | tpl: Add hasSuffix alias | Jonathan Fisher | |
strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias. This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. It also adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Completes https://github.com/gohugoio/hugo/issues/10474 | |||
2023-03-05 | Allow page.TableOfContents on self in shortcode | Bjørn Erik Pedersen | |
Fixes #10791 | |||
2023-03-04 | tpl/partial: Consolidate GoDoc | Bjørn Erik Pedersen | |