about summary refs log tree commit diff stats
path: root/README.md
diff options
context:
space:
mode:
authorAlan Pearce2023-04-17 21:04:20 +0200
committerAlan Pearce2023-04-17 21:04:20 +0200
commite6e48c160edf49163e13153589157f618f4e37a3 (patch)
treeab3327729d115d66cfb3dff5974ee86c8615f793 /README.md
parent3758d69577873ada5142e4c5a671cf69f0a16edf (diff)
downloadwebsite-e6e48c160edf49163e13153589157f618f4e37a3.tar.lz
website-e6e48c160edf49163e13153589157f618f4e37a3.tar.zst
website-e6e48c160edf49163e13153589157f618f4e37a3.zip
Add menu instructions to readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
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