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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay