hugolib: Discard current language based on .Lang()
authorAbdó Roig-Maranges <abdo.roig@gmail.com>
Sun, 19 Feb 2017 14:00:18 +0000 (15:00 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 19 Feb 2017 14:00:18 +0000 (15:00 +0100)
commit02b120d1bd6dc7e81a6c81a44621de45a6c9b594
treedb3c4dd3fa1aa31b933192d89b14721429128974
parent6809ea1e7c5cb540d6d81ce0a47f3f0f5d761e8e
hugolib: Discard current language based on .Lang()

Otherwise we fail to skip the current language in translations
for paginated pages.

Fixes #2972
hugolib/page.go