Add example for Sidebar menus

This commit is contained in:
Dinesh 2019-08-31 00:27:59 +05:30 committed by Bjørn Erik Pedersen
parent 8bfa46de48
commit 6190b663b6
1 changed files with 24 additions and 1 deletions

View File

@ -52,7 +52,30 @@ Hyde includes some customizable options, typically applied via classes on the `<
### Sidebar menu ### Sidebar menu
Create a list of nav links in the sidebar by assigning "menu=main" in the front matter. Create a list of nav links in the sidebar by assigning "menu=main" in the front matter, like so:
**TOML**
```toml
theme = "hyde"
[Menus]
main = [
{Name = "Github", URL = "https://github.com/username/"},
{Name = "LinkedIn", URL = "https://www.linkedin.com/in/username/"}
]
```
**YAML**
```yaml
theme: "hyde"
Menus:
main:
- Name: "Github"
URL: "https://github.com/username/"
- Name: "LinkedIn"
URL: "https://www.linkedin.com/in/username/"
```
### Sticky sidebar content ### Sticky sidebar content