hugolib: Normalize permalink path segments
authorCameron Moore <moorereason@gmail.com>
Fri, 14 Sep 2018 09:35:26 +0000 (04:35 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 14 Sep 2018 09:35:26 +0000 (11:35 +0200)
commit06976ebb8778e08fea89dbd9fcb875f6c8d650d4
tree652a7db2936b33126e4ad67de737a1a9a84b7958
parent555a5612b2641075b3e1b3b7af8ce9b5aba9f200
hugolib: Normalize permalink path segments

When constructing permalinks, ensure that path segments are normalized
with PathSpec.MakeSegment instead of PathSpec.URLize.

Fixes #4926
hugolib/permalinks.go
hugolib/permalinks_test.go