hugolib: Add .Page.BundleType
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 23 Apr 2018 06:41:19 +0000 (08:41 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 23 Apr 2018 06:41:19 +0000 (08:41 +0200)
commit402f6788ee955ad2aace84e8fba1625db7b356d9
tree33f674988ca8f1c4acb16e67b1fcfc71a520238b
parent3decf4a327157e98d3da3502b6d777de63437c39
hugolib: Add .Page.BundleType

I eturn either:

1. leaf
2. branch
3. empty string

The above sits well with constructs like:

```
{{ with .BundleType }}
// Now we know it is a bundle
{{ end }}
```

Fixes #4662
hugolib/page.go
hugolib/page_bundler_test.go