@using Dpz.Core.EnumLibrary
@{ var menu = (MenuItem?) ViewBag.Menu; }
<ul class="layui-nav layui-nav-tree layui-nav-side blog-nav-left layui-hide" lay-filter="nav">
<li class="layui-nav-item @Html.Raw(menu == MenuItem.Home ? "layui-this" : "")">
<a href="/" data-pjax><i class="fa fa-home fa-fw"></i> 网站首页</a>
</li>
<li class="layui-nav-item @Html.Raw(menu == MenuItem.Blog ? "layui-this" : "")">
<a asp-action="Index" asp-controller="Article" data-pjax>
<i class="fa fa-file-text fa-fw"></i> 文章专栏
</a>
</li>
<li class="layui-nav-item @Html.Raw(menu == MenuItem.Steam ? "layui-this" : "")">
<a asp-controller="Steam" asp-action="Index" data-pjax><i class="fa fa-steam fa-fw"></i> Steam</a>
</li>
<li class="layui-nav-item @Html.Raw(menu == MenuItem.Mumble ? "layui-this" : "")">
<a asp-action="Index" asp-controller="Talk" data-pjax>
<i class="fa fa-comments fa-fw"></i> 碎碎念
</a>
</li>
<li class="layui-nav-item @Html.Raw(menu == MenuItem.Bookmark ? "layui-this" : "")">
<a asp-action="Index" asp-controller="Bookmark" data-pjax>
<i class="fa fa-bookmark fa-fw"></i> 我的书签
</a>
</li>
<li class="layui-nav-item @Html.Raw((menu == MenuItem.Code || menu == MenuItem.Timeline || menu == MenuItem.Markdown) ? "layui-this" : "")">
<a href="javascript:;"><i class="fa fa-toggle-down fa-fw"></i>其它内容</a>
<dl class="layui-nav-child">
<dd @Html.Raw(menu == MenuItem.Music ? "class='layui-this'" : "")>
<a asp-controller="Music" asp-action="Index" asp-route-path="" data-pjax><i class="fa fa-music fa-fw"></i> 曲库</a>
</dd>
@* <dd @Html.Raw(menu == MenuItem.Hot ? "class='layui-this'" : "")> *@
@* <a asp-controller="Topic" asp-action="Index" asp-route-path="" data-pjax><i class="fa fa-fire fa-fw"></i> 今日热榜</a> *@
@* </dd> *@
<dd @Html.Raw(menu == MenuItem.Code ? "class='layui-this'" : "")>
<a asp-controller="Code" asp-action="Index" asp-route-path="" data-pjax><i class="fa fa-code fa-fw"></i> 网站源码</a>
</dd>
<dd @Html.Raw(menu == MenuItem.Timeline ? "class='layui-this'" : "")>
<a asp-controller="Home" asp-action="Timeline" data-pjax><i class="fa fa-pagelines fa-fw"></i> 时间轴</a>
</dd>
<dd @Html.Raw(menu == MenuItem.Friends ? "class='layui-this'" : "")>
<a asp-controller="Home" asp-action="Friends" data-pjax><i class="fa fa-address-book fa-fw"></i> 友情链接</a>
</dd>
<dd @Html.Raw(menu == MenuItem.Markdown ? "class='layui-this'" : "")>
<a asp-controller="Home" asp-action="Markdown" data-pjax><i class="fa fa-map-marker fa-fw"></i>Markdown语法</a>
</dd>
</dl>
</li>
</ul>