aboutsummaryrefslogtreecommitdiffhomepage
path: root/common
AgeCommit message (Collapse)Author
2024-08-12releaser: Prepare repository for 0.133.0-DEVrelease-0.132.0hugoreleaser
[ci skip]
2024-08-12releaser: Bump versions for release of 0.132.0v0.132.0hugoreleaser
[ci skip]
2024-08-12Improve Katex error handling and fix handling of large expressionsBjørn Erik Pedersen
* Make throwOnError=true the new default * Handle JS errors as part of the RPC request/response flow * Return a new Result type with .Err on it This enables constructs on the form: ```handlebars {{ with transform.ToMath "c = \\foo{a^2 + b^2}" }} {{ with .Err }} {{ warnf "error: %s" . }} {{ else }} {{ . }} {{ end }} {{ end }} ``` Note that the new `Result` type behaves like `template.HTML` (or a string if needed) when printed, but it will panic if in a error state. Closes #12748
2024-08-09Add build time math renderingBjørn Erik Pedersen
While very useful on its own (and combined with the passthrough render hooks), this also serves as a proof of concept of using WASI (WebAssembly System Interface) modules in Hugo. This will be marked _experimental_ in the documentation. Not because it will be removed or changed in a dramatic way, but we need to think a little more how to best set up/configure similar services, define where these WASM files gets stored, maybe we can allow user provided WASM files plugins via Hugo Modules mounts etc. See these issues for more context: * https://github.com/gohugoio/hugo/issues/12736 * https://github.com/gohugoio/hugo/issues/12737 See #11927
2024-08-02releaser: Prepare repository for 0.132.0-DEVrelease-0.131.0hugoreleaser
[ci skip]
2024-08-02releaser: Bump versions for release of 0.131.0v0.131.0hugoreleaser
[ci skip]
2024-08-01resources/page: Expand parmalinks tokens in `url`n1xx1
This change allows to use permalink tokens in url front matter fields. This should be useful to target more specific pages instead of using a global permalink configuration. It's expected to be used with cascade. Fixes #9714
2024-07-31Shorten processed image filenamesBjørn Erik Pedersen
Fixes #12688 Fixes #12656
2024-07-31Consolidate all hashing to the common/hashing packageBjørn Erik Pedersen
And remove now unsued hashing funcs.
2024-07-31Replace the MD5 hashing of images with xxHashBjørn Erik Pedersen
Note that we only use this for change detection. The previous implementation invoked `MD5FromReaderFast` that created a MD5 has from 8 64 bytes chunks in the file, which is obviously very fast. The new implementation creates the hash from the entire file and ... seems to be even more effective: ``` name old time/op new time/op delta HashImage-10 9.45µs ±21% 10.89µs ± 1% ~ (p=0.343 n=4+4) name old alloc/op new alloc/op delta HashImage-10 144B ± 0% 8B ± 0% -94.44% (p=0.029 n=4+4) name old allocs/op new allocs/op delta HashImage-10 4.00 ± 0% 1.00 ± 0% -75.00% (p=0.029 n=4+4) ```
2024-07-29releaser: Prepare repository for 0.131.0-DEVrelease-0.130.0hugoreleaser
[ci skip]
2024-07-29releaser: Bump versions for release of 0.130.0v0.130.0hugoreleaser
[ci skip]
2024-07-17releaser: Prepare repository for 0.130.0-DEVrelease-0.129.0hugoreleaser
[ci skip]
2024-07-17releaser: Bump versions for release of 0.129.0v0.129.0hugoreleaser
[ci skip]
2024-07-04releaser: Prepare repository for 0.129.0-DEVrelease-0.128.2hugoreleaser
[ci skip]
2024-07-04releaser: Bump versions for release of 0.128.2v0.128.2hugoreleaser
[ci skip]
2024-07-02releaser: Prepare repository for 0.129.0-DEVrelease-0.128.1hugoreleaser
[ci skip]
2024-07-02releaser: Bump versions for release of 0.128.1v0.128.1hugoreleaser
[ci skip]
2024-06-25releaser: Prepare repository for 0.129.0-DEVrelease-0.128.0hugoreleaser
[ci skip]
2024-06-25releaser: Bump versions for release of 0.128.0v0.128.0hugoreleaser
[ci skip]
2024-06-25Add css.TailwindCSSBjørn Erik Pedersen
Closes #12618 Closes #12620
2024-06-23Implement deferBjørn Erik Pedersen
Closes #8086 Closes #12589
2024-06-22Fix Erroridf/Warnidf mixed case issueBjørn Erik Pedersen
Fixes #12617
2024-06-22common/hexec: Fall back to the binary in PATH if npx failsBjørn Erik Pedersen
Closes #12486
2024-06-05releaser: Prepare repository for 0.128.0-DEVrelease-0.127.0hugoreleaser
[ci skip]
2024-06-05releaser: Bump versions for release of 0.127.0v0.127.0hugoreleaser
[ci skip]
2024-06-04Add a HTTP cache for remote resources.Bjørn Erik Pedersen
Fixes #12502 Closes #11891
2024-06-02releaser: Prepare repository for 0.127.0-DEVrelease-0.126.3hugoreleaser
[ci skip]
2024-06-02releaser: Bump versions for release of 0.126.3v0.126.3hugoreleaser
[ci skip]
2024-05-30releaser: Prepare repository for 0.127.0-DEVBjørn Erik Pedersen
2024-05-30releaser: Bump versions for release of 0.126.2release-0.126.2hugoreleaser
[ci skip]
2024-05-15releaser: Bump versions for release of 0.126.1v0.126.1hugoreleaser
[ci skip]
2024-05-14releaser: Bump versions for release of 0.126.0v0.126.0hugoreleaser
[ci skip]
2024-05-14Create pages from _content.gotmplBjørn Erik Pedersen
Closes #12427 Closes #12485 Closes #6310 Closes #5074
2024-05-08releaser: Prepare repository for 0.126.0-DEVrelease-0.125.7hugoreleaser
[ci skip]
2024-05-08releaser: Bump versions for release of 0.125.7v0.125.7hugoreleaser
[ci skip]
2024-05-05releaser: Prepare repository for 0.126.0-DEVrelease-0.125.6hugoreleaser
[ci skip]
2024-05-05releaser: Bump versions for release of 0.125.6v0.125.6hugoreleaser
[ci skip]
2024-05-01releaser: Prepare repository for 0.126.0-DEVrelease-0.125.5hugoreleaser
[ci skip]
2024-05-01releaser: Bump versions for release of 0.125.5v0.125.5hugoreleaser
[ci skip]
2024-04-25releaser: Prepare repository for 0.126.0-DEVrelease-0.125.4hugoreleaser
[ci skip]
2024-04-25releaser: Bump versions for release of 0.125.4v0.125.4hugoreleaser
[ci skip]
2024-04-20releaser: Bump versions for release of 0.125.2v0.125.2hugoreleaser
[ci skip]
2024-04-18releaser: Prepare repository for 0.126.0-DEVrelease-0.125.1hugoreleaser
[ci skip]
2024-04-18releaser: Bump versions for release of 0.125.1v0.125.1hugoreleaser
[ci skip]
2024-04-16releaser: Prepare repository for 0.126.0-DEVrelease-0.125.0hugoreleaser
[ci skip]
2024-04-16releaser: Bump versions for release of 0.125.0v0.125.0hugoreleaser
[ci skip]
2024-04-16Add Luminance to ColorBjørn Erik Pedersen
To sort an image's colors from darkest to lightest, you can then do: ```handlebars {{ {{ $colorsByLuminance := sort $image.Colors "Luminance" }} ``` This uses the formula defined here: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance Fixes #10450
2024-03-20releaser: Prepare repository for 0.125.0-DEVrelease-0.124.1hugoreleaser
[ci skip]
2024-03-20releaser: Bump versions for release of 0.124.1v0.124.1hugoreleaser
[ci skip]