200 lines
8.0 KiB
HTML
200 lines
8.0 KiB
HTML
{extend name="baseH5" /}
|
|
|
|
{block name="get-data"}
|
|
|
|
{novel:pagerexp page="$Request.get.page" limit="30"
|
|
n_category="$Request.route.strCategory"
|
|
sort_type="$Request.route.strOrder"
|
|
n_status="$Request.route.strStatus"
|
|
d_key="d_key"
|
|
d_val="Novel"
|
|
button_num="8" cache_life="86400" func="generateCategoryPager" export_name="resData" /}
|
|
|
|
{site:grm page_code="h5_novel_library" diff="$resData.p_data.page" num="40" g_key="arrGrm" /}
|
|
{/block}
|
|
|
|
{block name="title"}{site:replace code="NOVEL@GETLIBRARY@TITLE"}{/block}
|
|
{block name="keywords"}{site:replace code="NOVEL@GETLIBRARY@KEYWORDS"}{/block}
|
|
{block name="description"}{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}{/block}
|
|
|
|
{block name="head"}
|
|
<!-- 社交媒体标签 -->
|
|
<meta property="og:title" content='{site:replace code="NOVEL@GETLIBRARY@TITLE"}' />
|
|
<meta property="og:description" content='{site:replace code="NOVEL@GETLIBRARY@DESCRIPTION"}' />
|
|
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
|
|
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}" />
|
|
{else}
|
|
|
|
<meta property="og:url"
|
|
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://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://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}
|
|
|
|
{/block}
|
|
|
|
{block name="head-js"}{/block}
|
|
{block name='nav-active-class'}novel{$Request.route.strCategory}{/block}
|
|
{block name="body-class"}{/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"}
|
|
<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">
|
|
<div class="type">
|
|
<div class="list">
|
|
|
|
<div class="item">
|
|
<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 " title="{$strCategoryName}">
|
|
{$strCategoryName}</a>
|
|
</div>
|
|
{/novel:category}
|
|
<script>
|
|
$(function () {
|
|
let pageId = "#fenlei_{$Request.route.strCategory}"
|
|
$(pageId).addClass("active")
|
|
})
|
|
</script>
|
|
</div>
|
|
</div>
|
|
<div class="sort">
|
|
<div class="list">
|
|
{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" title="{$strSortName}">{$strSortName}</a>
|
|
</div>
|
|
|
|
{/novel:sort}
|
|
</div>
|
|
|
|
<script>
|
|
$(function () {
|
|
let pageId = "#paixu_{$Request.route.strOrder}"
|
|
$(pageId).addClass("active")
|
|
})
|
|
</script>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="content">
|
|
<div class="cartoon-list">
|
|
<div class="novel-list">
|
|
{foreach $resData.data as $key=>$Novel}
|
|
{include file="public/novel-list" /}
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wrap" style="display: block; padding-bottom: 1px;">
|
|
<ul class="pagination justify-content-center">
|
|
{volist name="resData.p_data.pager" id="vo" key="k"}
|
|
{switch $vo.label}
|
|
{case value="上一页"}
|
|
{if $resData.p_data.page == 1}
|
|
<li class="page-item disabled"><span class="page-link">«</span></li>
|
|
{else}
|
|
<li class="page-item"><a class="page-link" href="{$vo.url}">«</a></li>
|
|
{/if}
|
|
{/case}
|
|
{case value="下一页"}
|
|
{if $resData.p_data.page >= $resData.p_data.total}
|
|
<li class="page-item disabled"><span class="page-link">»</span></li>
|
|
{else}
|
|
<li class="page-item"><a class="page-link" href="{$vo.url}">»</a></li>
|
|
{/if}
|
|
{/case}
|
|
{default /}
|
|
{if preg_match('/^\d+$/', $vo.label)}
|
|
<li class="page-item"><a class="page-link" href="{$vo.url}">{$vo.label}</a></li>
|
|
{/if}
|
|
{/switch}
|
|
{/volist}
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{/block}
|
|
|
|
{block name="customize"} {/block} |