all repos — website @ e6e48c160edf49163e13153589157f618f4e37a3

My website

Add menu instructions to readme
Alan Pearce alan@alanpearce.eu
Mon, 17 Apr 2023 21:04:20 +0200
commit

e6e48c160edf49163e13153589157f618f4e37a3

parent

3758d69577873ada5142e4c5a671cf69f0a16edf

1 files 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