diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-04-22 09:13:47 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-04-22 13:22:01 +0200 |
commit | 0775c98e6c5b700e46adaaf190fc3f693a6ab002 (patch) | |
tree | b2162c568fc2afd528792a5e28064f7d9c6caa0a /hugolib/page__paths.go | |
parent | 1477fb33c938107601ffcbc7d3051378cf608443 (diff) | |
download | hugo-0775c98e6c5b700e46adaaf190fc3f693a6ab002.tar.gz hugo-0775c98e6c5b700e46adaaf190fc3f693a6ab002.zip |
hugolib: No links for bundled pages
This fixes a bug introduced in Hugo 0.55.
Fixes #5882
Diffstat (limited to 'hugolib/page__paths.go')
-rw-r--r-- | hugolib/page__paths.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/page__paths.go b/hugolib/page__paths.go index 8bc7a7535..adbdb4668 100644 --- a/hugolib/page__paths.go +++ b/hugolib/page__paths.go @@ -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) } |