hugo:fix/order-11946

Last commit made on 2024-01-31
Get this branch:
git clone -b fix/order-11946 https://git.launchpad.net/hugo

Branch merges

Branch information

Name:
fix/order-11946
Repository:
lp:hugo

Recent commits

70423f0... by Bjørn Erik Pedersen

Filter out duplicate content resource files

We do a slight normalisation of the content paths (lower case, replacing " " with "-") and remove andy language identifier before inserting them into the content tree.

This means that, given that that the default content language is `en`:

```
index.md
index.html
Foo Bar.txt
foo-bar.txt
foo-bar.en.txt
Foo-Bar.txt
```

The bundle above will be reduced to one content file with one resource (`foo-bar.txt`).

Before this commit, what version of the `foo-bar.txt` you ended up with was undeterministic. No we pick the first determined by sort order.

Note that the sort order is stable, but we recommend avoiding situations like the above.

Closes #11946

5b7cb25... by Bjørn Erik Pedersen

Create default link and image render hooks

Fixes #11933

80595bb... by Bjørn Erik Pedersen

Fix recent regression .Resources.Get for resources with spaces in filename

Fixes #11944

afee781... by Bjørn Erik Pedersen

Emit a warning that can be turned off when overwriting built-in .Params values

Fixes #11941

4e84f57... by Bjørn Erik Pedersen

Add warnidf template function

Also rename config `ignoreErrors` => `ignoreLogs`

But the old still works.

Closes #9189

f31a6db... by Bjørn Erik Pedersen

Add path, kind and lang to content front matter

Note that none of these can be set via cascade (you will get an error)

Fixes #11544

ec22bb3... by Lars Lehtonen

hugofs/glob: Fix dropped test error

a795acb... by Bjørn Erik Pedersen

all: Run gofumpt -l -w .

982d951... by Bjørn Erik Pedersen

testing: Simplify some integration tests

6dedb4e... by Bjørn Erik Pedersen

Add the [params] concept to front matter

This is deliberately very simple, but should not break anything. We need to introduce this in baby steps, but this should allow us to introduce this in the documentation.

Note that the `params` section's key/values will be added to `.Params` last. This means that you can have different values for "Hugo's summary" and the custom ".Params.summary" if you want to.

Updates #11055