aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__paths.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-04-22 09:13:47 +0200
committerBjørn Erik Pedersen <[email protected]>2019-04-22 13:22:01 +0200
commit0775c98e6c5b700e46adaaf190fc3f693a6ab002 (patch)
treeb2162c568fc2afd528792a5e28064f7d9c6caa0a /hugolib/page__paths.go
parent1477fb33c938107601ffcbc7d3051378cf608443 (diff)
downloadhugo-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.go4
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)
}