Adding a navbar 🔧

We can add a navbar to a page using the following functions :

  • navbarStart() : This function will open the navbar.
  • navbarButton() : This function will add a button to the navbar.
  • navbarEnd() : This function will close the navbar.


  navbarButton("Home", "/", "fa fa-home"); 

This line

navbarButton("Home", "/", "fa fa-home");

Will add a button which

  • has the text Home
  • has the link /
  • has the icon fa fa-home

The third argument is optional, it is the fontawesome icon that will be added to the button.


This website needs javascript to be enabled