debug
This commit is contained in:
@@ -7,16 +7,18 @@
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'}
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}/shuku/all" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}" />
|
||||
{else}
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage}" />
|
||||
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nflurl gender="$strGender" category="$strCategory" status="$strStatus" page="$intPage"/}' />
|
||||
{/if}
|
||||
<meta property="og:type" content="book" />
|
||||
<!-- 结构化数据 -->
|
||||
{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}/shuku/all",
|
||||
"@context": "https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}",
|
||||
"@type": "book",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
@@ -26,7 +28,7 @@
|
||||
{else}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage}",
|
||||
"@context": 'https://{$DomainModel->d_domain}{site:nflurl gender="$strGender" category="$strCategory" status="$strStatus" page="$intPage"/}',
|
||||
"@type": "book",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
@@ -41,9 +43,10 @@
|
||||
{block name="head-css"}
|
||||
|
||||
{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'}
|
||||
<link rel="canonical" href="{$DomainModel->d_domain}/shuku/all">
|
||||
<link rel="canonical" href="https://{$DomainModel->d_domain}{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}">
|
||||
{else}
|
||||
<link rel="canonical" href="/shuku/{$strGender}/{$strCategory}/{$strStatus}/page1">
|
||||
<link rel="canonical"
|
||||
href='https://{$DomainModel->d_domain}{site:nflurl gender="$strGender" category="$strCategory" status="$strStatus" page="$intPage"/}'>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
@@ -66,48 +69,69 @@
|
||||
<meta itemprop="position" content="1" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="{$strPcPath}/shuku/all" itemprop="item">
|
||||
<a href="{$strPcPath}{$strCategoryIndexUrlTemp}" itemprop="item">
|
||||
<span itemprop="name">书库</span>
|
||||
</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<!--选择搜索 开始-->
|
||||
<!--选择搜索 开始-->
|
||||
<div class="find">
|
||||
<div class="opt">
|
||||
<div class="optCl" mod="search_channel">
|
||||
<div class="optCl" mod="search_channel">
|
||||
<span class="optTit">所属频道</span>
|
||||
<ul>
|
||||
<li><a class='{eq name="strGender" value="all"}on {/eq}' href="{$strPcPath}/shuku/all/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">全部</a></li>
|
||||
<li><a class='{eq name="strGender" value="nansheng-xiaoshuo"}on {/eq}' href="{$strPcPath}/shuku/nansheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">男生</a></li>
|
||||
<li><a class='{eq name="strGender" value="nvsheng-xiaoshuo"}on {/eq}' href="{$strPcPath}/shuku/nvsheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">女生</a></li>
|
||||
<li><a class='{eq name="strGender" value="all"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl gender="all" category="$strCategory" status="$strStatus" page="$intPage"/}'
|
||||
btn="search_category">全部</a></li>
|
||||
<li><a class='{eq name="strGender" value="$strNanUrlTemp"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl gender="$strNanUrlTemp" category="$strCategory" status="$strStatus" page="$intPage"/}'
|
||||
btn="search_category">男生</a></li>
|
||||
<li><a class='{eq name="strGender" value="$strNvUrlTemp"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl gender="$strNvUrlTemp" category="$strCategory" status="$strStatus" page="$intPage"/}'
|
||||
btn="search_category">女生</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="optCl" mod="search_channel">
|
||||
<span class="optTit">所属分类</span>
|
||||
<ul>
|
||||
<li><a class='{eq name="strCategory" value="all"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/all/{$strStatus}/page{$intPage}" btn="search_category">全部</a></li>
|
||||
<li><a class='{eq name="strCategory" value="all"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl gender="$strGender" category="all" status="$strStatus" page="$intPage"/}'
|
||||
btn="search_category">全部</a></li>
|
||||
|
||||
{eq name="strGender" value="nansheng-xiaoshuo"}
|
||||
{foreach $arrCategoryAll.man as $key=>$vo }
|
||||
<li><a class='{eq name="key" value="$strCategory"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$key}/{$strStatus}/page{$intPage}" btn="search_category">{$vo}</a></li>
|
||||
{eq name="strGender" value="$strNanUrlTemp"}
|
||||
{foreach $arrCategoryAll.man as $key=>$vo }
|
||||
<li><a class='{eq name="key" value="$strCategory"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl gender="$strGender" category="$key" status="$strStatus" page="$intPage"/}'
|
||||
btn="search_category">{$vo}</a></li>
|
||||
{/foreach}
|
||||
{else}
|
||||
{foreach $arrCategoryAll.women as $key=>$vo }
|
||||
<li><a class='{eq name="key" value="$strCategory"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$key}/{$strStatus}/page{$intPage}" btn="search_category">{$vo}</a></li>
|
||||
{foreach $arrCategoryAll.women as $key=>$vo }
|
||||
<li><a class='{eq name="key" value="$strCategory"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl gender="$strGender" category="$key" status="$strStatus" page="$intPage"/}'
|
||||
btn="search_category">{$vo}</a></li>
|
||||
{/foreach}
|
||||
{/eq}
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="optCl">
|
||||
<span class="optTit">是否完结</span>
|
||||
<ul>
|
||||
<li><a class='{eq name="strStatus" value="all"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/all/page{$intPage}" btn="search_category">全部</a></li>
|
||||
<li><a class='{eq name="strStatus" value="lianzai"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/lianzai/page{$intPage}" btn="search_category">连载</a></li>
|
||||
<li><a class='{eq name="strStatus" value="wanjie"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/wanjie/page{$intPage}" btn="search_category">完本</a></li>
|
||||
<li><a class='{eq name="strStatus" value="all"}on {/eq}'
|
||||
href='{$strPcPath}{site:nflurl gender="$strGender" category="$strCategory" status="all" page="$intPage"/}'
|
||||
btn="search_category">全部</a></li>
|
||||
<li><a class='{eq name="strStatus" value="lianzai"}on {/eq}'
|
||||
|
||||
href='{$strPcPath}{site:nflurl gender="$strGender" category="$strCategory" status="lianzai" page="$intPage"/}'
|
||||
btn="search_category">连载</a></li>
|
||||
<li><a class='{eq name="strStatus" value="wanjie"}on {/eq}'
|
||||
|
||||
href='{$strPcPath}{site:nflurl gender="$strGender" category="$strCategory" status="wanjie" page="$intPage"/}'
|
||||
btn="search_category">完本</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -125,31 +149,31 @@
|
||||
<div class="changepage">
|
||||
<ul class="pagination">
|
||||
{volist name="arrPaginator" id="vo" key="k"}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $intPage == 1}
|
||||
<li class="disabled"><span>«</span></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage-1}">«</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $intPage >= $intTotalPage}
|
||||
<li class="disabled"><span>»</span></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage+1}">»</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="..."}
|
||||
<li class="disabled"><span>...</span></li>
|
||||
{/case}
|
||||
{default /}
|
||||
{if preg_match('/^\d+$/', $vo.label)}
|
||||
<li class='{eq name="vo.label" value="$intPage"}active {/eq}'>
|
||||
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/switch}
|
||||
{switch $vo.label}
|
||||
{case value="上一页"}
|
||||
{if $intPage == 1}
|
||||
<li class="disabled"><span>«</span></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage-1}">«</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="下一页"}
|
||||
{if $intPage >= $intTotalPage}
|
||||
<li class="disabled"><span>»</span></li>
|
||||
{else}
|
||||
<li><a href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage+1}">»</a></li>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="..."}
|
||||
<li class="disabled"><span>...</span></li>
|
||||
{/case}
|
||||
{default /}
|
||||
{if preg_match('/^\d+$/', $vo.label)}
|
||||
<li class='{eq name="vo.label" value="$intPage"}active {/eq}'>
|
||||
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/switch}
|
||||
{/volist}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user