<div class="sidebar pe-4 pb-3">
    <nav class="navbar bg-light navbar-light">
        <a href="index1.html" class="navbar-brand mx-4 mb-3">
            <h3 class="text-primary">DoakCMS</h3>
        </a>
        
        <div class="navbar-nav w-100">
            <a href='{{ adminUrl("") }}' class="nav-item nav-link sidebar-doak-index">
                <i class="fa fa-tachometer-alt me-2"></i>
                控制台
            </a>
            
            <a href='{{ adminUrl("art") }}' class="nav-item nav-link sidebar-art-index">
                <i class="fa fa-table me-2"></i>
                文章管理
            </a>
            
            {{if isAdmin}}
            <a href='{{ adminUrl("cate") }}' class="nav-item nav-link sidebar-cate-index">
                <i class="fa fa-th me-2"></i>
                分类管理
            </a>
            <a href='{{ adminUrl("tag") }}' class="nav-item nav-link sidebar-tag-index">
                <i class="fa fa-tags me-2"></i>
                标签管理
            </a>
            <a href='{{ adminUrl("page") }}' class="nav-item nav-link sidebar-page-index">
                <i class="fa fa-pager me-2"></i>
                单页管理
            </a>
            <a href='{{ adminUrl("user") }}' class="nav-item nav-link sidebar-user-index">
                <i class="fa fa-user me-2"></i>
                账号管理
            </a>
            <a href='{{ adminUrl("attach") }}' class="nav-item nav-link sidebar-attach-index">
                <i class="fa fa-file me-2"></i>
                附件管理
            </a>
            {{end}}
        
        </div>
    </nav>
</div>
