<div class="ui fixed borderless menu" style="position: fixed; height: 49px">
    <div class="ui container">
        <a class="header item" href="/">
            <span style="font-family: 'Exo 2'; font-size: 1.5em; font-weight: 600">
                HexoAnywhere
            </span></a>
        <a class="item" href="/dash"><i class="home icon"></i> 控制台</a>
        <a class="item" href="/dash/posts"><i class="list icon"></i> 文章列表</a>
        <div class="right menu">
            <div class="item">
                <% if (user) { %>
                    <div class="ui simple dropdown item">
                        <%= user %>
                            <i class="dropdown icon"></i>
                            <div class="menu">
                                <a class="item" href="/logout"><i class="power icon"></i>注销</a>
                            </div>
                    </div>
                    <% } else { %>
                        <a class="ui button" style="margin-right: 0.5em" href="/login">
                            登录
                        </a>
                        <% } %>
            </div>
        </div>
    </div>
</div>