更新伪静态文章栏目规则,生成伪静态页面分页代码

This commit is contained in:
2020-05-26 15:15:32 +08:00
parent 4d658ca4ab
commit 8461f9230e
20 changed files with 287 additions and 122 deletions
+2 -2
View File
@@ -88,9 +88,9 @@
<li>暂无相关记录...</li>
}
</ul>
<!-- 分页按钮 -->
<!-- 分页按钮 $"/Article/Index/{Model.Id}" + "?page={0}"-->
<div class="normal">
@Html.Raw(Pages.GetPageStr(ViewBag.pagesize, (int)ViewBag.totalCount, ViewBag.page, $"/Article/Index/{Model.Id}" + "?page={0}", 99, 10, ""))
@Html.Raw(Pages.GetPageStr(ViewBag.pagesize, (int)ViewBag.totalCount, ViewBag.page, ViewsHelper.EchoURL(Model), 3, 10, ""))
</div>
<!-- 点击加载更多 -->
</div>
+3 -3
View File
@@ -30,7 +30,7 @@
@foreach (var item in productCategories)
{
<url>
<loc>@(url)@(ViewsHelper.EchoURL(item)))</loc>
<loc>@(url)@(ViewsHelper.EchoURL(item))</loc>
<priority>0.80</priority>
<lastmod>@(lastmod)</lastmod>
<changefreq>daily</changefreq>
@@ -39,7 +39,7 @@
@foreach (var item in articles)
{
<url>
<loc>@(url)@(ViewsHelper.EchoURL(item)))</loc>
<loc>@(url)@(ViewsHelper.EchoURL(item))</loc>
<priority>0.80</priority>
<lastmod>@(lastmod)</lastmod>
<changefreq>daily</changefreq>
@@ -48,7 +48,7 @@
@foreach (var item in products)
{
<url>
<loc>@(url)@(ViewsHelper.EchoURL(item)))</loc>
<loc>@(url)@(ViewsHelper.EchoURL(item))</loc>
<priority>0.80</priority>
<lastmod>@(lastmod)</lastmod>
<changefreq>daily</changefreq>