增加文章Tag标签
This commit is contained in:
@@ -211,7 +211,7 @@
|
||||
</div>
|
||||
<div class="foot-bottom">
|
||||
<div class="cont">
|
||||
<span>@ViewBag.cfg.Copyright <a href="http://www.comcms.com/" target="_blank"> 技术支持:COMCMS</a> <a href="http://www.miitbeian.gov.cn/" target="_blank">粤ICP备8888888号-1</a> Powered by .NET Core 3.1 on @COMCMS.Common.Utils.GetOSPlatform() Server</span>
|
||||
<span>@ViewBag.cfg.Copyright <a href="http://www.comcms.com/" target="_blank"> 技术支持:COMCMS</a> <a href="http://www.miitbeian.gov.cn/" target="_blank">粤ICP备8888888号-1</a> Powered by .NET 5.0 on @COMCMS.Common.Utils.GetOSPlatform() Server</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
@model IList<Tags>
|
||||
@{
|
||||
ViewBag.title = "TAG标签";
|
||||
ViewBag.keywords = "TAG标签";
|
||||
ViewBag.description = "TAG标签";
|
||||
|
||||
}
|
||||
|
||||
<div class="banner normal sec-banner">
|
||||
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
|
||||
</div>
|
||||
<!-- mb banner -->
|
||||
<div class="banner mobile sec-banner">
|
||||
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
|
||||
</div>
|
||||
<div class="sec-nav">
|
||||
<div class="cont">
|
||||
<ul class="sec-nav-list">
|
||||
<li class="sec-on">TAG标签</li>
|
||||
</ul>
|
||||
|
||||
<script type="text/javascript">
|
||||
function mbSecNav() {
|
||||
var num = $('.sec-nav-list li').length;
|
||||
if (num >= 3) {
|
||||
$('.sec-nav-list li').css({ 'width': (640 / 3 / 100) + 'rem' });
|
||||
} else if (num == 2) {
|
||||
$('.sec-nav-list li').css({ 'width': (640 / 2 / 100) + 'rem' });
|
||||
} else if (num == 1) {
|
||||
$('.sec-nav-list li').css({ 'width': (213 / 100) + 'rem' });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content newsC">
|
||||
<div class="news-bg">
|
||||
<div class="cont">
|
||||
<ul class="tag-list">
|
||||
@foreach (Tags a in Model)
|
||||
{
|
||||
<li>
|
||||
<a href="/tag/@a.TagName" title="@a.TagName">
|
||||
@a.TagName(@a.Counts)
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
@if (Model == null || Model.Count < 1)
|
||||
{
|
||||
<li>暂无相关记录...</li>
|
||||
}
|
||||
</ul>
|
||||
<div class="normal">
|
||||
@Html.Raw(Pages.GetPageStr(ViewBag.pagesize, (int)ViewBag.totalCount, ViewBag.page, "/Tag?page={0}", 3, 10, ""))
|
||||
</div>
|
||||
<!-- 点击加载更多 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,61 @@
|
||||
@model Tags
|
||||
@{
|
||||
ViewBag.title = Model.TagName;
|
||||
ViewBag.keywords = Model.Keywords;
|
||||
ViewBag.description = Model.Description;
|
||||
|
||||
}
|
||||
|
||||
<div class="banner normal sec-banner">
|
||||
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
|
||||
</div>
|
||||
<!-- mb banner -->
|
||||
<div class="banner mobile sec-banner">
|
||||
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
|
||||
</div>
|
||||
<div class="sec-nav">
|
||||
<div class="cont">
|
||||
<ul class="sec-nav-list">
|
||||
<li class="sec-on">标签:@Model.TagName</li>
|
||||
</ul>
|
||||
|
||||
<script type="text/javascript">
|
||||
function mbSecNav() {
|
||||
var num = $('.sec-nav-list li').length;
|
||||
if (num >= 3) {
|
||||
$('.sec-nav-list li').css({ 'width': (640 / 3 / 100) + 'rem' });
|
||||
} else if (num == 2) {
|
||||
$('.sec-nav-list li').css({ 'width': (640 / 2 / 100) + 'rem' });
|
||||
} else if (num == 1) {
|
||||
$('.sec-nav-list li').css({ 'width': (213 / 100) + 'rem' });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content newsC">
|
||||
<div class="news-bg">
|
||||
<div class="cont">
|
||||
<ul class="tag-list">
|
||||
@foreach (TagsDetail a in ViewBag.list)
|
||||
{
|
||||
<li>
|
||||
<a href="@ViewsHelper.EchoArticleURL(a.RId)" title="@a.Title">
|
||||
@a.Title
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
@if (ViewBag.list == null || ViewBag.list.Count < 1)
|
||||
{
|
||||
<li>暂无相关记录...</li>
|
||||
}
|
||||
</ul>
|
||||
<div class="normal">
|
||||
@Html.Raw(Pages.GetPageStr(ViewBag.pagesize, (int)ViewBag.totalCount, ViewBag.page, "/tag/"+Model.TagName+"/{0}", 3, 10, ""))
|
||||
</div>
|
||||
<!-- 点击加载更多 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user