From e6e48c160edf49163e13153589157f618f4e37a3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 17 Apr 2023 21:04:20 +0200 Subject: Add menu instructions to readme --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 8caaef0..d5e367e 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,24 @@ Please check out the included [config.toml](https://codeberg.org/alanpearce/zola ## 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 -- cgit 1.4.1