I am seeking for the way to create a sub navigation tree on the left side for my Lektor project.
I know the Lektor documentation itself is done in that way and I checked out the whole project from GitHub.
But ... I am totally lost when trying to understand how this is done. I want to keep the main navigation in the top and create a sub navigation to all sub pages of one page on the left side. I think this is done with model doc-page.ini, template doc-page.html and some css.
Am I right with the following assumptions:
- Main navigation in top is defined in layout.html
- Sub navigation on the left is defined in doc-page.html
- Css class to put main navigation into top is one of the navbar classes
- Css class to put sub navigation into left is tree-nav class
If somebody could shed some light on this it would be great.
Is there any small example project available demonstrating how to create a page with navigation to all sub pages?
Or should I strip of everything not used from Lektor project to get my starting point?
Thanks in advance Thorsten
I managed to solve my question at the end.
I found this tutorial to create a web site with header, footer, navigation bar and 2 column layout: https://www.w3schools.com/css/css_website_layout.asp
I was able to create doc-page.html and add the necessary enhancements to styles.css and layout.html.
styles.css
layout.html
doc-page.html