Fix IsMenuCurrent for SectionPagesMenu
authorbep <bjorn.erik.pedersen@gmail.com>
Sat, 9 May 2015 18:54:11 +0000 (20:54 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Sat, 9 May 2015 18:53:58 +0000 (20:53 +0200)
commitbe325a30885cadaff6792c6aa79413fc1c20be5e
tree669cd79517fc15f57201f35a8937b5b9e048e699
parentbef0f281d1d9a6f58c0b50140ddb2c4e6991bc95
Fix IsMenuCurrent for SectionPagesMenu

Pretty sure it has worked at some point, but that PR probably has been rebased to pieces.

This refactors the fix by @dannys42 into a method, as this URL fix is applied several places.

Fixes #1114
hugolib/menu_test.go
hugolib/node.go
hugolib/site.go