Thanks for your answer.
I was confused because the “prev/next in section” navigation in nav-poemes.html
is broken after upgrading Hugo (worked like a charm in 0.54
).
For menus relying on Page’s .URL
to detect the current page (in main nav nav.html
and secondary nav nav-recueils.html
), I just replaced .Page.URL
by .Page.RelPermalink
and it did the job, menus are working fine and there’s no warning fired by these two files.
But as far as the “prev/next in section” navigation here is concerned, the 0.55.0
update breaks it: .PrevInSection
and .NextInSection
are empty. If you have any clue why I’d be glad if you could help. Otherwise I will try this code by @rordorf indicated here but it’s way more complicated.
It seems to me this break is due to version 0.55.0
's following fix:
Fix default date assignment for sections 1d9dde82 @bep #5784
But I’m not sure at all. When trying to render .NextInSection.RelPermalink
(or prev
/ .URL
) I’ve got this error:
nil pointer evaluating page.Page.RelPermalink
But I don’t know how to work around this.
@bep do you think this could be a collateral bug introduced in 0.55.0
?