DEV Community

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

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

1 1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay