Commit Graph
9901 Commits
Author SHA1 Message Date
Bjørn Erik Pedersen 772128485a Run gofmt -s with Go 1.10
See #4434
2018-02-21 09:59:33 +01:00
Bjørn Erik Pedersen c2c4cb1f9f hugolib: Fix broken footnote test
See #4433
2018-02-21 09:25:32 +01:00
Bjørn Erik Pedersen 492fea7cd2 Update Blackfriday to fix footnote HTML5 validation error
Fixes #4433
2018-02-21 09:18:17 +01:00
Bjørn Erik Pedersen 5ed11edf5a releaser: Update to Go 1.10 2018-02-21 08:52:44 +01:00
Bjørn Erik Pedersen 1dc05a16bd Update index.md 2018-02-20 16:23:16 +01:00
Dmitri Melikyan d73a9b3b4e Added StackImpact showcase 2018-02-20 16:22:17 +01:00
Bjørn Erik Pedersen b0e82b3a5c Fix uglyURLs example
Closes https://github.com/gohugoio/hugo/issues/4428
2018-02-19 22:20:34 +01:00
Bjørn Erik Pedersen 799c654b0d resource: Preserve color palette for PNG images
This commit will force a reprocessing of PNG images with new names, so it is adviced to run a `hugo --gc` to remove stale files.

Fixes #4416
2018-02-19 20:15:58 +01:00
Bjørn Erik Pedersen cf8a937280 GA track outgoing sponsor clikcs 2018-02-19 10:32:03 +01:00
Bjørn Erik Pedersen aca59ac661 Move the sponsor banners up a little
They deserve a better placement.
2018-02-19 10:04:07 +01:00
Bjørn Erik Pedersen 5571673f08 Migrate from analytics.js to gtag.js
We should move this to the internal Hugo template when tested.
2018-02-19 09:26:13 +01:00
Curtis Timson c7eacf018d Fix typos in development contribution doc 2018-02-18 20:47:18 +01:00
Curtis Timson 244deafc2b Fix typos in development contribution doc 2018-02-18 20:47:18 +01:00
Curtis Timson faa3159e5e Fix typos in development contribution doc 2018-02-18 20:47:18 +01:00
Bjørn Erik Pedersen 64a29b6cbc Update faq.md 2018-02-18 00:53:28 +01:00
Hugo Locurcio 84704aa84b Use GOPATH variable if defined in installation from source
This makes the command work on systems with a custom GOPATH environment
variable set. If not defined, it will fallback to `$HOME/.go`.
2018-02-17 19:11:20 +01:00
Bjørn Erik Pedersen 5f70e6ee2c Remove disableRSS etc. from the documentation
They was deprecated and then removed.

Fixes https://github.com/gohugoio/hugo/issues/4419
2018-02-17 13:40:37 +01:00
Bjørn Erik Pedersen eaf573a277 Update dependencies
Closes #4418
2018-02-17 10:46:38 +01:00
Bjørn Erik Pedersen 3ced6f8d47 magefile: Disable Go 1.10 gofmt check for now 2018-02-17 01:24:07 +01:00
Bjørn Erik Pedersen a3f26e5636 Second try: Update to Go 1.10 (!) 2018-02-17 00:35:22 +01:00
Bjørn Erik Pedersen 0c452c6e7d Revert "Update to Go 1.10 (!)"
This reverts commit ff10c15a93.
2018-02-16 23:42:42 +01:00
Bjørn Erik Pedersen ff10c15a93 Update to Go 1.10 (!)
See https://blog.golang.org/go1.10
2018-02-16 23:29:51 +01:00
Bjørn Erik Pedersen 4945e7937c Remove superflous asterisks 2018-02-16 14:04:11 +01:00
Bjørn Erik Pedersen 39f6c9c28c showcase: Add 1password.com 2018-02-16 11:27:15 +01:00
Bjørn Erik Pedersen fe0f82610f Add GitLab warning
See #358
2018-02-15 19:23:27 +01:00
maiki 9f26f21d28 Fix URL typo
Remove extra word in URL, as pointed at at https://discourse.gohugo.io/t/typo-in-docs/10558?u=maiki.
2018-02-15 11:08:44 -05:00
Bjørn Erik Pedersen 83a91fc998 Remove duplicate release notes
Gotta fix that merge logic.
2018-02-15 10:33:04 +01:00
Bjørn Erik Pedersen 133cdd3132 Release 0.36.1 2018-02-15 10:27:01 +01:00
Bjørn Erik Pedersen fbe2a2dc73 Clean images 2018-02-15 10:22:12 +01:00
Bjørn Erik Pedersen 1b02f9193e Merge branch 'temp361' 2018-02-15 10:21:57 +01:00
Bjørn Erik Pedersen c430d2d586 Merge branch 'release-0.36.1' 2018-02-15 10:13:09 +01:00
Bjørn Erik Pedersen 608c80f720 Merge branch 'release-0.36.1' 2018-02-15 10:13:09 +01:00
Bjørn Erik Pedersen efd506314a Merge branch 'release-0.36.1' 2018-02-15 10:13:09 +01:00
hugoreleaser dd7370fc4e releaser: Prepare repository for 0.37-DEV
[ci skip]
2018-02-15 09:10:09 +00:00
hugoreleaser 0f8ffbd5c4 releaser: Prepare repository for 0.37-DEV
[ci skip]
2018-02-15 09:10:09 +00:00
hugoreleaser 8de91da74f releaser: Prepare repository for 0.37-DEV
[ci skip]
2018-02-15 09:10:09 +00:00
hugoreleaser 72534f9ec6 releaser: Add release notes to /docs for release of 0.36.1
[ci skip]
2018-02-15 09:07:43 +00:00
hugoreleaser 5028ee849f releaser: Add release notes to /docs for release of 0.36.1
[ci skip]
2018-02-15 09:07:43 +00:00
hugoreleaser 25e88ccabe releaser: Add release notes to /docs for release of 0.36.1
[ci skip]
2018-02-15 09:07:43 +00:00
hugoreleaser 845b2cacb4 releaser: Bump versions for release of 0.36.1
[ci skip]
2018-02-15 09:07:43 +00:00
hugoreleaser 9ccc7cb11d releaser: Bump versions for release of 0.36.1
[ci skip]
2018-02-15 09:07:43 +00:00
hugoreleaser 19228ed83c releaser: Bump versions for release of 0.36.1
[ci skip]
2018-02-15 09:07:43 +00:00
Bjørn Erik Pedersen a1f40084f9 Release 0.36.1 2018-02-15 10:03:24 +01:00
hugoreleaser d7bf9d4daa releaser: Add release notes draft for 0.36.1
Rename to *-ready.md to continue. [ci skip]
2018-02-15 08:51:22 +00:00
Bjørn Erik Pedersen 53e661e7c9 releaser: Update to Go 1.9.4 2018-02-15 09:43:03 +01:00
Bjørn Erik Pedersen fc23a80ffd Bump Travis/Snapcraft to Go 1.9.4 2018-02-15 09:43:03 +01:00
Bjørn Erik Pedersen d8fdffb552 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
2018-02-15 09:41:29 +01:00
Bjørn Erik Pedersen 2851af0225 resource: Improve error processing error message 2018-02-15 09:41:29 +01:00
Bjørn Erik Pedersen 08521dac83 hugolib: Improve error message in .Render 2018-02-15 09:41:29 +01:00
Bjørn Erik Pedersen 58382e9572 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
2018-02-14 20:59:02 +01:00