Skip to content

Commit

Permalink
docs: instructions for pages of the shortcut section matcornic#434 ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed May 19, 2023
1 parent 4218dc3 commit d57ec1d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion exampleSite/content/cont/menushortcuts.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,26 @@ Example from the current website:
weight = 40
````

Read more about [hugo menu](https://gohugo.io/extras/menus/) and [hugo multilingual menus](https://gohugo.io/content-management/multilingual/#menus)
Read more about [hugo menu](https://gohugo.io/extras/menus/) and [hugo multilingual menus](https://gohugo.io/content-management/multilingual/#menus)

## Shortcuts to pages inside of your project

If you have shortcuts to pages inside of your project and you don't want them to show up in page menu section, you have two choices:

1. Make the page file for the shortcut section a [headless branch bundle](https://gohugo.io/content-management/age-bundles/#headless-bundle) (contained in its own subdirectory and called `_index.md`) and add the following rontmatter configuration to the file (see exampleSite's `content/showcase`). This causes its content to **not** be ontained in the sitemap.

````toml
[_build]
render = "never"
list = "never"
publishResources = false
````

2. Store the page file for the shortcut section below a parent headless branch bundle and add the following frontmatter to he **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.

````toml
[_build]
render = "always"
list = "never"
publishResources = true
````

0 comments on commit d57ec1d

Please sign in to comment.