192 lines
8.0 KiB
HTML
192 lines
8.0 KiB
HTML
{extend name="basePc" /}
|
|
{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="{$strTitle??''}" />
|
|
<meta property="og:description" content="{$strDescription??''}" />
|
|
{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" />
|
|
<!-- 结构化数据 -->
|
|
{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": "{$strTitle??''}",
|
|
"description": "{$strDescription??''}",
|
|
"datePublished": "{:date('Y-m-d')}"
|
|
}
|
|
</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": "{$strTitle??''}",
|
|
"description": "{$strDescription??''}",
|
|
"datePublished": "{:date('Y-m-d')}"
|
|
}
|
|
</script>
|
|
{/if}
|
|
|
|
{/block}
|
|
{block name="head-js"}{/block}
|
|
|
|
{block name="head-css"}
|
|
|
|
{if $Request.route.strGender == 'all' && $Request.route.strCategory == 'all' && $Request.route.strStatus == 'all'}
|
|
<link rel="canonical" href="https://{$DomainModel->d_domain}{$DomainModel->d_domain}{$strCategoryIndexUrlTemp}">
|
|
{else}
|
|
<link rel="canonical"
|
|
href='https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" page="$Request.route.intPage"/}'>
|
|
{/if}
|
|
|
|
{/block}
|
|
|
|
{block name='nav-active-class'}home{/block}
|
|
|
|
|
|
{block name="main"}
|
|
|
|
<div class="container">
|
|
<div class="row row-section">
|
|
<div class="layout layout-col3">
|
|
{novel:list count="6" sort_type="tuijian" d_key="d_key" d_val="Novel" p_val="page_data" cache_life="86400"}
|
|
<div class="item">
|
|
<div class="image">
|
|
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
|
|
<img style="min-height:120px;" class="lazyload-img" src="/static/img/default.jpg"
|
|
data-src="{$Novel.n_cover_path ?? ''}"
|
|
alt="{$Novel.n_name ?? ''} - {$Novel.n_category ?? ''}最新章节在线免费阅读">
|
|
</a>
|
|
</div>
|
|
<dl>
|
|
<dt>
|
|
<span>{$Novel.n_author}</span>
|
|
<a
|
|
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel.n_name}</a>
|
|
</dt>
|
|
<dd style="height:90px">
|
|
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'
|
|
style="color: #555">{$Novel.n_description}</a>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
{/novel:list}
|
|
</div>
|
|
</div>
|
|
<div class="sort_nav">
|
|
<p>
|
|
<span>分类:</span>
|
|
<a class='{eq name="$Request.route.strCategory" value="all"}on {/eq}'
|
|
href='{$strPcPath}{site:nflurl category="all" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'>不限</a>
|
|
|
|
{novel:category d_key="strCategoryPinyin" d_val="strCategoryName"}
|
|
<a class='{eq name="$Request.route.strCategory" value="$strCategoryPinyin"}on {/eq}'
|
|
href='{$strPcPath}{site:nflurl category="$strCategoryPinyin" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'>{$strCategoryName}</a>
|
|
|
|
{/novel:category}
|
|
|
|
|
|
</p>
|
|
<p><span>排序:</span>
|
|
{novel:sort d_key="key" d_val="strSortName"}
|
|
<a href='{$strPcPath}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" order="$key" page="$Request.route.intPage"/}'
|
|
class='{eq name="$Request.route.strOrder" value="$key"}on {/eq}'>{$strSortName}</a>
|
|
{/novel:sort}
|
|
</p>
|
|
<p><span>状态:</span>
|
|
{novel:status d_key="key" d_val="strStatusName"}
|
|
<a href='{$strPcPath}{site:nflurl category="$Request.route.strCategory" status="$key" order="$Request.route.strOrder" page="$Request.route.intPage"/}'
|
|
class='{eq name="$Request.route.strStatus" value="$key"}on {/eq}'
|
|
btn="search_category">{$strStatusName}</a>
|
|
{/novel:status}
|
|
|
|
</p>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="layout layout2 layout-col1 fr">
|
|
<h2 class="layout-tit">最新入库小说</h2>
|
|
<ul class="txt-list txt-list-row3">
|
|
{novel:list count="30" sort_type="news" d_key="d_key" d_val="Novel" p_val="page_data"
|
|
cache_life="86400"}
|
|
<li>
|
|
<span class="s1">[{$Novel->n_category ?? ''}</span>
|
|
<span class="s2"><a
|
|
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
|
|
<span class="s5"><a
|
|
href='{$strPcPath}{site:souurl key="$Novel->n_author" p="1"/}'>{$Novel->n_author}</a></span>
|
|
</li>
|
|
{/novel:list}
|
|
</ul>
|
|
</div>
|
|
<div class="layout layout2 layout-col2 fl">
|
|
<h2 class="layout-tit">最近更新小说列表</h2>
|
|
<ul class="txt-list txt-list-row5">
|
|
{novel:pager page="1" limit="30" n_category="$Request.route.strCategory"
|
|
sort_type="$Request.route.strOrder"
|
|
n_status="$Request.route.strStatus" d_key="d_key"
|
|
d_val="Novel" n_num="n_num"
|
|
p_val="page_data" button_num="10" cache_life="86400" func="generateCategoryPager"}
|
|
<li>
|
|
<span class="s1">[{$Novel->n_category ?? ''}</span>
|
|
<span class="s2"><a
|
|
href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>{$Novel->n_name}</a></span>
|
|
<span class="s3"><a
|
|
href='{$strPcPath}{site:lcpurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin" /}'
|
|
title="{$Novel->n_latest_chapter_name ?? 'null'}">{$Novel->n_latest_chapter_name ??
|
|
'null'}</a></span>
|
|
<span class="s4">{$Novel.n_author}</span>
|
|
<span class="s5">{:date('m-d')}</span>
|
|
</li>
|
|
{/novel:pager}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 分页 -->
|
|
<div class="row sort_page_num">
|
|
{volist name="page_data" id="vo" key="k"}
|
|
{switch $vo.label}
|
|
{case value="上一页"}
|
|
{if $Request.route.intPage == 1}
|
|
<span>«</span>
|
|
{else}
|
|
<a href="{$strPcPath}{$vo.url}">«</a>
|
|
{/if}
|
|
{/case}
|
|
{case value="下一页"}
|
|
{if $Request.route.intPage >= $n_num}
|
|
<span>»</span>
|
|
{else}
|
|
<a href="{$strPcPath}{$vo.url}">»</a>
|
|
{/if}
|
|
{/case}
|
|
{case value="..."}
|
|
<span>...</span>
|
|
{/case}
|
|
{default /}
|
|
{if preg_match('/^\d+$/', $vo.label)}
|
|
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
|
|
{/if}
|
|
{/switch}
|
|
{/volist}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
{/block}
|
|
|
|
{block name="customize"}
|
|
{/block} |