From 6190b663b6ed5d6ea45521265c82d8e1bf3885e9 Mon Sep 17 00:00:00 2001 From: Dinesh Date: Sat, 31 Aug 2019 00:27:59 +0530 Subject: [PATCH] Add example for Sidebar menus --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04d9654..16e22b2 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,30 @@ Hyde includes some customizable options, typically applied via classes on the `< ### 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