DEV Community

Cover image for mkws - How to add a navigation menu
Adrian Emil Grigore
Adrian Emil Grigore

Posted on • Updated on • Originally published at mkws.sh

mkws - How to add a navigation menu

In order to add a navigation menu to your website, all you have to do is edit the ./share/l.upphtml file and add your navigation code there. Open up ./share/l.upphtml in your favorite text editor and add the following lines right below the body tag:

<header>
    <nav>
            <ul>
                    <li><a href=/>Home</a></li>
                    <li><a href=docs.html>Docs</a></li>
                    <li><a href=src.html>Sources</a></li>
                    <li><a href=contact.html>Contact</a></li>
            </ul>
    </nav>
</header>
Enter fullscreen mode Exit fullscreen mode

Edit to match your website.

Then, regenerate your site using the mkws command:

./bin/mkws https://example.com
Enter fullscreen mode Exit fullscreen mode

Taken from
How to add a navigation menu

Top comments (0)