hugo-test:release-0.36.1

Last commit made on 2018-02-15
Get this branch:
git clone -b release-0.36.1 https://git.launchpad.net/hugo-test

Branch merges

Branch information

Name:
release-0.36.1
Repository:
lp:hugo-test

Recent commits

8de91da... by hugoreleaser <email address hidden>

releaser: Prepare repository for 0.37-DEV

[ci skip]

25e88cc... by hugoreleaser <email address hidden>

releaser: Add release notes to /docs for release of 0.36.1

[ci skip]

19228ed... by hugoreleaser <email address hidden>

releaser: Bump versions for release of 0.36.1

[ci skip]

a1f4008... by Bjørn Erik Pedersen

Release 0.36.1

d7bf9d4... by hugoreleaser <email address hidden>

releaser: Add release notes draft for 0.36.1

Rename to *-ready.md to continue. [ci skip]

53e661e... by Bjørn Erik Pedersen

releaser: Update to Go 1.9.4

fc23a80... by Bjørn Erik Pedersen

Bump Travis/Snapcraft to Go 1.9.4

d8fdffb... by Bjørn Erik Pedersen

resource: Fix multi-threaded image processing issue

When doing something like this with the same image from a partial used in, say, both the home page and the single page:

```bash
{{ with $img }}
{{ $big := .Fill "1024x512 top" }}
{{ $small := $big.Resize "512x" }}
{{ end }}
```

There would be timing issues making Hugo in some cases try to process the same image with the same instructions in parallel.

You would experience errors of type:

```bash
png: invalid format: not enough pixel data
```

This commit works around that by adding a mutex per image. This should also improve the performance, sligthly, as it avoids duplicate work.

The current workaround before this fix is to always operate on the original:

```bash
{{ with $img }}
{{ $big := .Fill "1024x512 top" }}
{{ $small := .Fill "512x256 top" }}
{{ end }}
```

Fixes #4404

2851af0... by Bjørn Erik Pedersen

resource: Improve error processing error message

08521da... by Bjørn Erik Pedersen

hugolib: Improve error message in .Render