aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__new.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__new.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__new.go')
-rw-r--r--hugolib/page__new.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page__new.go b/hugolib/page__new.go
index c703867f1..64c84b0f8 100644
--- a/hugolib/page__new.go
+++ b/hugolib/page__new.go
@@ -166,14 +166,14 @@ func newPageStandalone(m *pageMeta, f output.Format) (*pageState, error) {
}
-func newPageWithContent(f *fileInfo, s *Site, content resource.OpenReadSeekCloser) (*pageState, error) {
+func newPageWithContent(f *fileInfo, s *Site, bundled bool, content resource.OpenReadSeekCloser) (*pageState, error) {
sections := s.sectionsFromFile(f)
kind := s.kindFromFileInfoOrSections(f, sections)
if kind == page.KindTaxonomy {
s.PathSpec.MakePathsSanitized(sections)
}
- metaProvider := &pageMeta{kind: kind, sections: sections, s: s, f: f}
+ metaProvider := &pageMeta{kind: kind, sections: sections, bundled: bundled, s: s, f: f}
ps, err := newPageBase(metaProvider)
if err != nil {