diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-19 12:04:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-19 14:46:50 +0200 |
commit | e590cc26eb1363a4b84603f051b20bd43fd1f7bd (patch) | |
tree | ad4637d3ff3216eab1e4d2ac6a5097e07ce86036 /hugolib/page.go | |
parent | 74520d2cfd39bb4428182e26c57afa9df83ce7b5 (diff) |
Improve .Content vs shortcodes
For the content from other pages in shortcodes there are some chicken and
egg dependencies that is hard to get around. But we can improve on this by preparing the pages in a certain order:
1. The headless bundles goes first. These are page typically page and image collections..
2. Leaf bundles
3. Regular single pages
4. Branch bundles
Fixes #4632
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index ebd7a3a2a..d0951bff7 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -243,6 +243,8 @@ type Page struct { // 3. But you can get it via .Site.GetPage headless bool + bundleType bundleDirType + layoutDescriptor output.LayoutDescriptor scratch *Scratch |