Skip to content

Commit 3aaf76a

Browse files
committed
docs: migration notes for pages of the more section matcornic#434 matcornic#510 matcornic#522
1 parent da634d6 commit 3aaf76a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

exampleSite/content/basics/migration/_index.en.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,30 @@ This document shows you what's new in the latest release. For a detailed list of
114114

115115
## 5.9.0 (2022-12-23)
116116

117+
- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} With this version it is now possible to not only have sections on the first menu level but also pages.
118+
119+
It was later discovered, that this causes pages only meant to be displayed in the `More` section of the menu and stored directly inside your `content` directory to now show up in the menu aswell.
120+
121+
To get rid of this undesired behavior you have two choices:
122+
123+
1. Make the page file for the `More` section a [headless branch bundle](https://gohugo.io/content-management/page-bundles/#headless-bundle) (contained in its own subdirectory and called `_index.md`) and add the following frontmatter configuration to the file (see exampleSite's `content/showcase`). This causes its content to **not** be contained in the sitemap.
124+
125+
````toml
126+
[_build]
127+
render = "never"
128+
list = "never"
129+
publishResources = false
130+
````
131+
132+
2. Store the page file for the `More` section below a parent headless branch bundle and add the following frontmatter to the **parent**. In this case, the file itself can be a branch bundle, leaf bundle or simple page (see exampleSite's `content/more/` and `content/more/credits`). This causes its content to be contained in the sitemap.
133+
134+
````toml
135+
[_build]
136+
render = "always"
137+
list = "never"
138+
publishResources = true
139+
````
140+
117141
- {{% badge style="note" title=" " %}}Change{{% /badge %}} The required folder name for the [`attachments` shortcode]({{% relref "shortcodes/attachments" %}}) was changed for leaf bundles.
118142

119143
Previously, the attachments for leaf bundles in non-multilang setups were required to be in a `files` subdirectory. For page bundles and leaf bundles in multilang setups they were always required to be in a `_index.<LANGCODE>.files` or `index.<LANGCODE>.files` subdirectory accordingly.

0 commit comments

Comments
 (0)