hugo-theme-relearn/exampleSite/content/configuration/content/hidden/_index.en.md

28 lines
1.2 KiB
Markdown
Raw Normal View History

2024-09-29 23:48:56 +02:00
+++
description = "Learn about the hiddes pages feature"
title = "Hidden Pages"
weight = 5
+++
The theme provides the concept of hidden pages.
While Hugo has the `draft` option to not create a page at all, a hidden page is created but not shown in the navigation. Just set `hidden=true` in your pages front matter. This can be useful if you want to have a page that is only accessible via a link.
If you access a hidden page via its URL, it will be revealed in the navigation menu.
Hidden pages can even contain hidden subpages.
By default, a hidden page is only hidden from a human user of your site. Crawlers may still see the URLs advertised in the sitemap, etc. You can avoid this by the following options
## Hide from Search
To hide hidden pages from search results of the search popup and dedicated search page, set `params.disableSearchHiddenPages=true`.
## Hide from Crawlers
To hide hidden pages from crawlers by removing links from the sitemap and rss feed, set `params.disableSearchHiddenPages=true`.
## Hide from Taxonomies
To hide hidden pages from showing up on the taxonomy and term pages, set `params.disableTagHiddenPages=true`. If this reduces term counters to zero, an empty but unlinked term page will be created anyhow.