Bjørn Erik Pedersen
Bjørn Erik Pedersen
>Use case 1: find all pages where tags equals ['foo']. >Use case 2: find all pages where tags equals ['foo','bar']. The above is rather technical use cases ... I can...
>Go 1.21 introduced the slices package which contains https://pkg.go.dev/slices#Equal. The functional part of this has never been the challenge. If you look at that implementation you will find a ......
To be clear: >tags = ['foo', 'bar'] >{{ where .Pages "Params.tags" eq (slice "foo" "bar" }} Would be cheapish to implement with strict ordering (['foo', 'bar'] != ['bar', 'foo']), but...
This is the one command I talk about here: https://github.com/bep/simplecobra#differences-to-cobra `hugo new` only work because of backward compability (we just append `content` to the argument list), the correct command to...
I moved this issue to where it belongs. The above documentation is auto generated (from Cobra). I'm pretty sure the above should be possible to fix (it's a good idea),...
A note: The above alone will not solve the Tailwind 3 use case for this, so this needs some further thinking.
Testing this a little further, this: ``` module.exports = { content: ['./hugo_stats.json'], plugins: [typography], }; ``` * Works reasonably well when used with `resources.PostProcess` * When not using `resources.PostProcess` you...
>Could hugo be built statically instead? I don't think that will solve _this particular issue_, but I'm not sure. Technically yes. We do that for Windows (for practical reasons; it's...
I assume it's the Go 1.20 changes mentioned here that breaks this: https://tip.golang.org/doc/go1.20#cgo I'm guessing that Go bundled these C libraries into Go in
I agree, but it needs to wait a little, and I'll spend a few lines to explain why: * We do lazy rendering of `.Content`, mostly to avoid doing the...