Add menu instructions to readme
Alan Pearce alan@alanpearce.eu
Mon, 17 Apr 2023 21:04:20 +0200
1 files changed, 18 insertions(+), 0 deletions(-)
jump to
M README.md → README.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