hugolib: Support sub-sections in permalink settings
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 12 Jun 2017 17:14:29 +0000 (19:14 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Jun 2017 09:42:32 +0000 (11:42 +0200)
commit1f26420d392a5ab4c7b7fe1911c0268b45d01ab8
tree30453df7f0289f03b9cb36d0e932f4998e141b39
parentff54b6bddcefab45339d8dc2b13776b92bdc04b9
hugolib: Support sub-sections in permalink settings

This enables both the variants below:

Current (first level only):

```
"blog": ":section/:title",
```

Nested (all levels):

```
"blog": ":sections/:title",
```

Should ideally been part of Hugo 0.22, but better late than never ...

Fixes #3580
hugolib/permalinks.go
hugolib/site_sections_test.go