How to add additional pages to menu? #342
-
|
Hey! Is there any chance there could be some documentation on how to add additional menus into the header menu for fellow Astro newbies? Creating the extra page is easy but I didn't have luck hand-coding the addition in the theme config. Many thanks if you can find the time. Beautiful theme! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey! To add a new page you would need to create a new layout for your page in the Then, you will create a Then, you need to add your page to the header in Finally, you add a link to the header in the same file. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @maheshrijal, I’ve converted the issue into a discussion and marked your reply as the answer. |
Beta Was this translation helpful? Give feedback.
Hey! To add a new page you would need to create a new layout for your page in the
layoutfolder. As an example if you want to add anotespage, you would create a fileNotesLayout.astroin thelayoutsfolder.