mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
hugolib: No links for bundled pages
This fixes a bug introduced in Hugo 0.55. Fixes #5882
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user