I would like to add an item to my navbar that changes based on whether the user is signed in or signed out. This is a very common feature–this website has it in the upper right. Currently the best I can do is add static Sign In and Sign Out items to the navbar.
For example, I might provide a JavaScript function whose return value determines the menu item.
Please note that I already have authentication working. Here I am just asking how to improve on my static Sign In and Sign Out items to the Hugo navbar.