Add menu navigation only section in readme
This commit is contained in:
31
README.md
31
README.md
@@ -323,6 +323,9 @@ url = "/search/"
|
|||||||
weight = 40
|
weight = 40
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you intend for the menu to be sufficient for all navigation,
|
||||||
|
see [how to hide other navigation features](#menu-navigation-only).
|
||||||
|
|
||||||
## Layouts
|
## Layouts
|
||||||
|
|
||||||
### Cloud
|
### Cloud
|
||||||
@@ -923,6 +926,34 @@ try the following in `yoursite/layouts/partials/paige/style-first.css`:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Menu navigation only
|
||||||
|
|
||||||
|
If you configure a menu, and intend for it to be sufficient for all navigation,
|
||||||
|
you should hide the breadcrumbs on every page,
|
||||||
|
and hide the collection, section, and page lists on the home page if you use the default home page layout.
|
||||||
|
|
||||||
|
To hide the breadcrumbs on every page,
|
||||||
|
try the following in `yoursite/layouts/partials/paige/style-first.css`:
|
||||||
|
|
||||||
|
```css
|
||||||
|
#paige-breadcrumbs {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
To hide the collection, section, and page lists on the home page,
|
||||||
|
try the following in `yoursite/content/_index.md`:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[paige]
|
||||||
|
style = """
|
||||||
|
#paige-collections,
|
||||||
|
#paige-sections,
|
||||||
|
#paige-pages {
|
||||||
|
display: none;
|
||||||
|
}"""
|
||||||
|
```
|
||||||
|
|
||||||
## Implementation
|
## Implementation
|
||||||
|
|
||||||
The HTML author is the page authors.
|
The HTML author is the page authors.
|
||||||
|
Reference in New Issue
Block a user