{{define "navbar" -}}
            <nav class="navbar navbar-expand navbar-light bg-transparent">
                <div class="container-fluid">
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class='nav-link{{if and (and . .Page) (eq .Page "home")}} active{{end}}' href="/">Home</a>
                        </li>
                        <li class="nav-item">
                            <a class='nav-link{{if and (and . .Page) (eq .Page "messages")}} active{{end}}' href="/messages">Messages</a>
                        </li>
                    </ul>
                </div>
            </nav>
{{- end}}