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
budparr
78790fcb18
Add fluid type to showcase details box
...
The fluid type, which has a safe backup, will help longer titles stay
within the constrained div on a variety of screens
2018-02-14 16:12:33 +01:00
budparr
4ef59e0082
Adjust column widths to handle a wider variety of copy width
2018-02-14 16:12:33 +01:00
Bjørn Erik Pedersen
6d2e68521a
Always show the latest showcase item on front page
2018-02-13 15:45:38 +01:00
Bjørn Erik Pedersen
665b1eb5e7
showcase: Shuffle the news items
...
To give them all some time in the spotlight.
2018-02-13 15:25:42 +01:00
Bjørn Erik Pedersen
5fef1f9b75
Escape quote
2018-02-13 13:51:26 +01:00
Bjørn Erik Pedersen
d680f0c165
Add some quotes
2018-02-13 13:51:03 +01:00
Bjørn Erik Pedersen
1722f0d5af
showcase: Make the description more about Hugo
2018-02-13 13:48:12 +01:00
Sebastian Schirmer
a9d43db0ae
Add Quiply Employee Communications App
2018-02-13 13:41:41 +01:00
Sebastian Schirmer
7aaa464ecc
Add Quiply Employee Communications App
2018-02-13 13:41:41 +01:00
Bjørn Erik Pedersen
53dac9a506
resource: Improve error processing error message
2018-02-13 09:14:44 +01:00
Bjørn Erik Pedersen
4edb4bcc65
hugolib: Improve error message in .Render
2018-02-13 09:01:47 +01:00
Bjørn Erik Pedersen
fad6a25dda
maintenance: Show last 30
2018-02-12 22:18:05 +01:00
Bjørn Erik Pedersen
7afcfdced8
showcase: Set Linode date to today
...
And some minor polish.
2018-02-12 20:25:44 +01:00
Sam Foo
0c31f481a7
New showcase for Linode
2018-02-12 20:21:55 +01:00
Bjørn Erik Pedersen
0816a97a46
parser: Add WARNING for integer YAML keys
...
```bash
benchmark old ns/op new ns/op delta
BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps-4 3053 2015 -34.00%
BenchmarkStringifyMapKeysStringsOnlyStringMaps-4 5.23 5.18 -0.96%
BenchmarkStringifyMapKeysIntegers-4 2320 5177 +123.15%
benchmark old allocs new allocs delta
BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps-4 6 6 +0.00%
BenchmarkStringifyMapKeysStringsOnlyStringMaps-4 0 0 +0.00%
BenchmarkStringifyMapKeysIntegers-4 6 14 +133.33%
benchmark old bytes new bytes delta
BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps-4 1008 1008 +0.00%
BenchmarkStringifyMapKeysStringsOnlyStringMaps-4 0 0 +0.00%
BenchmarkStringifyMapKeysIntegers-4 1008 1776 +76.19%
```
Closes #4393
2018-02-12 19:16:12 +01:00
Bjørn Erik Pedersen
10a917dfdc
parser: Tune stringifyMapKeys
...
```bash
benchmark old ns/op new ns/op delta
BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps-4 3269 3053 -6.61%
BenchmarkStringifyMapKeysStringsOnlyStringMaps-4 4.79 5.23 +9.19%
BenchmarkStringifyMapKeysIntegers-4 2707 2320 -14.30%
benchmark old allocs new allocs delta
BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps-4 16 6 -62.50%
BenchmarkStringifyMapKeysStringsOnlyStringMaps-4 0 0 +0.00%
BenchmarkStringifyMapKeysIntegers-4 16 6 -62.50%
benchmark old bytes new bytes delta
BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps-4 1080 1008 -6.67%
BenchmarkStringifyMapKeysStringsOnlyStringMaps-4 0 0 +0.00%
BenchmarkStringifyMapKeysIntegers-4 1080 1008 -6.67%
```
2018-02-12 19:14:02 +01:00
Bjørn Erik Pedersen
d4beef0d2b
parser: Rename stringifyYAMLMapKeys to stringifyMapKeys
2018-02-12 18:17:25 +01:00
Bjørn Erik Pedersen
51213e0be1
parser: Add benchmarks for stringifyYAMLMapKeys
...
```bash
BenchmarkStringifyMapKeysStringsOnlyInterfaceMaps-4 500000 3269 ns/op 1080 B/op 16 allocs/op
BenchmarkStringifyMapKeysStringsOnlyStringMaps-4 300000000 4.79 ns/op 0 B/op 0 allocs/op
BenchmarkStringifyMapKeysIntegers-4 500000 2707 ns/op 1080 B/op 16 allocs/op
```
2018-02-12 18:16:48 +01:00
Vas Sudanagunta
1fa2417777
Add support for YAML array data files
...
* Unmarshaled YAML arrays indistinguishable from JSON arrays.
* Fixes #3890
2018-02-12 17:14:40 +01:00
Vas Sudanagunta
bb549a0d57
Account for array type data in data dir merge/override logic
...
* Fixes #4366
* Error message to console for unsupported data types
2018-02-12 17:14:40 +01:00
Vas Sudanagunta
82eefded13
hugolib: Refactor tests for JSON, YAML and TOML equivalency, add coverage
...
The same code now cycles through equivalent JSON, YAML and TOML data sets,
verifying output both proper and identical. Coverage increased by applying
previous tests for one format to the others.
More DRY. Added tests for numeric and bool value types.
2018-02-12 17:14:40 +01:00
Vas Sudanagunta
e172834993
hugolib: Re-enable YAML data tests disabled in f554503f
...
Also gave basic tests for JSON, YAML and TOML identical inputs and expected outputs, a step toward JSON, YAML and TOML equivalency (see https://github.com/gohugoio/hugo/issues/4393#issuecomment-364437785 ).
2018-02-12 17:14:40 +01:00