hugolib: No links for bundled pages

This fixes a bug introduced in Hugo 0.55.

Fixes #5882
This commit is contained in:
Bjørn Erik Pedersen
2019-04-22 09:13:47 +02:00
parent 1477fb33c9
commit 0775c98e6c
5 changed files with 26 additions and 9 deletions

View File

@@ -52,7 +52,9 @@ func newPagePaths(
var relPermalink, permalink string
if !pm.headless {
// If a page is headless or bundled in another, it will not get published
// on its own and it will have no links.
if !pm.headless && !pm.bundled {
relPermalink = paths.RelPermalink(s.PathSpec)
permalink = paths.PermalinkForOutputFormat(s.PathSpec, f)
}