hugolib: Fix layout lookup order for Render func
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 19 Mar 2017 10:40:54 +0000 (11:40 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 27 Mar 2017 13:43:56 +0000 (15:43 +0200)
commit08fa2b112407c1fe180e6c02dd8fe63735608336
tree84751afb3578970eeeafe00e835e1c4aced1accd
parent6178238a0b069ae8ce65a23e3dd60c091de0cfef
hugolib: Fix layout lookup order for Render func

Will have to fix this in a better way later in relation to the non-renderable pages.

But this commit brings the Hugo Benchmark down to "only slightly slower" than master.

```
benchmark           old ns/op       new ns/op       delta
BenchmarkHugo-4     10074504521     10071236251     -0.03%

benchmark           old allocs     new allocs     delta
BenchmarkHugo-4     43623091       49271859       +12.95%

benchmark           old bytes      new bytes      delta
BenchmarkHugo-4     9468322704     9725848376     +2.72%
```

Which is something we can work with.
hugolib/page.go