mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-24 04:20:15 +00:00
28 lines
1.2 KiB
Markdown
28 lines
1.2 KiB
Markdown
![]() |
+++
|
||
|
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.
|