Skip to content

Commit 6190b66

Browse files
dineshbabep
authored andcommitted
Add example for Sidebar menus
1 parent 8bfa46d commit 6190b66

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,30 @@ Hyde includes some customizable options, typically applied via classes on the `<
5252

5353
### Sidebar menu
5454

55-
Create a list of nav links in the sidebar by assigning "menu=main" in the front matter.
55+
Create a list of nav links in the sidebar by assigning "menu=main" in the front matter, like so:
56+
57+
**TOML**
58+
```toml
59+
theme = "hyde"
60+
61+
[Menus]
62+
main = [
63+
{Name = "Github", URL = "https://github.com/username/"},
64+
{Name = "LinkedIn", URL = "https://www.linkedin.com/in/username/"}
65+
]
66+
```
67+
68+
**YAML**
69+
```yaml
70+
theme: "hyde"
71+
72+
Menus:
73+
main:
74+
- Name: "Github"
75+
URL: "https://github.com/username/"
76+
- Name: "LinkedIn"
77+
URL: "https://www.linkedin.com/in/username/"
78+
```
5679
5780
5881
### Sticky sidebar content

0 commit comments

Comments
 (0)