all repos — homestead @ a3fe328844be9b4e09e222a79370bbb18e6919a0

Code for my website

Add menu instructions to readme

Alan Pearce
commit

a3fe328844be9b4e09e222a79370bbb18e6919a0

parent

0d63cd0deeaaf8359ea86d4eeec4705ae54c3869

1 file changed, 18 insertions(+), 0 deletions(-)

jump to
M README.mdREADME.md
@@ -34,6 +34,24 @@ Please check out the included [config.toml](https://codeberg.org/alanpearce/zola-bearblog/src/branch/main/config.toml)
## Content & structure +### Menu + +Create an array in `extra` with a key of `main_menu`. `url` is passed to [`get_url`](https://www.getzola.org/documentation/templates/overview/#get-url) + +```toml +[[extra.main_menu]] +name = "Bear" +url = "@/bear.md" + +[[extra.main_menu]] +name = "Zola" +url = "@/zola.md" + +[[extra.main_menu]] +name = "Blog" +url = "@/blog/_index.md" +``` + ### Adding / editing content #### Index-Page