debug
This commit is contained in:
@@ -29,25 +29,52 @@ button_num="8" cache_life="86400" func="generateCategoryPager" export_name="resD
|
||||
content='https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}' />
|
||||
{/if}
|
||||
<meta property="og:type" content="book" />
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content='{site:replace code="NOVEL@GETLIBRARY@TITLE"}'>
|
||||
<meta name="twitter:description" content='{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}'>
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}",
|
||||
"@type": "book",
|
||||
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}'
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"url": 'https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}',
|
||||
"name": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{else}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}',
|
||||
"@type": "book",
|
||||
"headline": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}',
|
||||
"name": '{site:replace code="NOVEL@GETLIBRARY@TITLE"}',
|
||||
"description": '{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}',
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
} ,
|
||||
"itemListElement": [
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "首页",
|
||||
"item": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": "{site:getval code="strNovelCategoryName" /}",
|
||||
"item": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}'
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
@@ -58,20 +85,32 @@ button_num="8" cache_life="86400" func="generateCategoryPager" export_name="resD
|
||||
{block name='nav-active-class'}home{/block}
|
||||
{block name="body-class"}novel_home{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h1 class="bookname">
|
||||
<a href="/"
|
||||
style="color:#ffffff">{$DomainModel->d_name}</a>-{$Request.route.strCategory}{$Request.route.strOrder}{$Request.route.strStatus}免费阅读
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{block name="nav-html"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<a href="/">
|
||||
<h2 >-{$DomainModel->d_name}-<span>{$DomainModel->d_text_logo}</span></h2>
|
||||
</a>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
|
||||
|
||||
<p class="site-description">{$strDescription??''}</p>
|
||||
<h1 class="site-description">{site:getval code="strNovelCategoryName" /}{site:getval code="strNovelOrder" /}{site:getval code="strNovelStatus" /}小说 - 免费在线阅读</h1>
|
||||
<nav class="breadcrumb" aria-label="breadcrumb">
|
||||
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="/" itemprop="item">
|
||||
<span itemprop="name">首页</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="1" />
|
||||
</li>
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="{$strCategoryIndexUrlTemp}" itemprop="item">
|
||||
<span itemprop="name">分类</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="2" />
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="layout-root">
|
||||
<div id="classify">
|
||||
<div class="w-category">
|
||||
@@ -79,13 +118,13 @@ button_num="8" cache_life="86400" func="generateCategoryPager" export_name="resD
|
||||
<div class="list">
|
||||
|
||||
<div class="item">
|
||||
<a href="" class="text " id="fenlei_0">{site:wz wz="全部" /}</a>
|
||||
<a href="{$strCategoryIndexUrlTemp}" class="text " id="fenlei_0">{site:wz wz="全部" /}</a>
|
||||
</div>
|
||||
|
||||
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
||||
<div class="item">
|
||||
<a href='{site:nflurl category="$strCategoryPinyin" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'
|
||||
id="fenlei_{$strCategoryPinyin}" class="text ">
|
||||
id="fenlei_{$strCategoryPinyin}" class="text " title="{$strCategoryName}">
|
||||
{$strCategoryName}</a>
|
||||
</div>
|
||||
{/novel:category}
|
||||
@@ -102,7 +141,7 @@ button_num="8" cache_life="86400" func="generateCategoryPager" export_name="resD
|
||||
{novel:sort d_key="key" d_val="strSortName"}
|
||||
<div class="item" id="paixu_{$key}">
|
||||
<a href='{site:nflurl category="$Request.route.strCategory" order="$key" page="$Request.route.intPage"/}'
|
||||
class="text">{$strSortName}</a>
|
||||
class="text" title="{$strSortName}">{$strSortName}</a>
|
||||
</div>
|
||||
|
||||
{/novel:sort}
|
||||
|
||||
Reference in New Issue
Block a user