196 lines
8.6 KiB
HTML
196 lines
8.6 KiB
HTML
{extend name="basePc" /}
|
|
|
|
{block name="get-data"}
|
|
{novel:info n_id="$Request.route.intNovelId" n_key="arrNovel" n_forge_id="0" /}
|
|
|
|
{chapter:pagerexp page="$Request.route.intPage" limit="100" n_id="$Request.route.intNovelId" d_key="d_key" d_val="chapter"
|
|
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
|
|
|
|
|
|
{site:grm page_code="pc_novel_catalog" diff="$Request.url" num="120" g_key="arrGrm" /}
|
|
{/block}
|
|
|
|
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE"}{/block}
|
|
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS"}{/block}
|
|
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}{/block}
|
|
|
|
{block name="head"}
|
|
|
|
|
|
<!-- 社交媒体标签 -->
|
|
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
|
|
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
|
<meta property="og:url"
|
|
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' />
|
|
<meta property="og:type" content="book" />
|
|
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
|
<meta property="og:site_name" content="{$DomainModel->d_name}" />
|
|
<meta property="og:novel:category" content="{$arrNovel.n_category ?? ''}">
|
|
<meta property="og:novel:author" content="{$arrNovel.n_author ?? ''}">
|
|
<meta property="og:novel:book_name" content="{$arrNovel.n_name ?? ''}">
|
|
<meta property="og:novel:read_url"
|
|
content='https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrNovel.intFirstChapterSort"/}'>
|
|
<meta property="og:novel:status" content="{$arrNovel.n_status ?? ''}">
|
|
<meta property="og:novel:update_time" content="{$arrNovel.n_update_time ?? ''}">
|
|
<meta property="og:novel:latest_chapter_name" content="{$arrNovel.n_latest_chapter_name ?? ''}">
|
|
<meta property="og:novel:latest_chapter_url"
|
|
content='https://{$DomainModel->d_domain}{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
|
|
<!-- 可选:支持 Twitter Card -->
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
|
|
<meta name="twitter:description" content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION"}' />
|
|
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
|
<!-- 结构化数据 -->
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "Book",
|
|
"name": "{$arrNovel['n_name'] ?? '未知小说'}",
|
|
"description": "{$arrNovel['n_description'] ??'暂无简介'}",
|
|
"author": {
|
|
"@type": "Person",
|
|
"name": "{$arrNovel['n_author'] ??'佚名'}"
|
|
},
|
|
"publisher": {
|
|
"@type": "Organization",
|
|
"name": "{$DomainModel->d_name}",
|
|
"url": "https://{$DomainModel->d_domain}"
|
|
},
|
|
"datePublished": "{$arrNovel['n_update_time'] ?? time()}",
|
|
"image": "{$arrNovel.n_cover_path ?? ''}",
|
|
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}',
|
|
"genre": "{$arrNovel.n_category ??''}",
|
|
"inLanguage": "zh-CN",
|
|
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
|
"aggregateRating": {
|
|
"@type": "AggregateRating",
|
|
"ratingValue": "4.5",
|
|
"reviewCount": "100",
|
|
},
|
|
|
|
}
|
|
</script>
|
|
|
|
{/block}
|
|
|
|
{block name="head-css"}
|
|
<link rel="canonical" href='https://{$DomainModel->d_domain}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="$Request.route.intPage"/}'>
|
|
{/block}
|
|
{block name="head-js"}{/block}
|
|
|
|
{block name="logo-html"}
|
|
<h2>
|
|
<a href="{$strPcPath}/">
|
|
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
|
</a>
|
|
</h2>
|
|
{/block}
|
|
{block name="main"}
|
|
|
|
|
|
<div id="wrapper">
|
|
<div id="main">
|
|
<div class="box_con">
|
|
<div id="maininfo">
|
|
<div id="info">
|
|
<h1>{$arrNovel.n_name}</h1>
|
|
<p>
|
|
作者:<a href='{$strPcPath}{site:souurl key="$arrNovel.n_author" p="1"/}'>{$arrNovel.n_author}</a>
|
|
状态:{$arrNovel.n_status}
|
|
</p>
|
|
<p>
|
|
分类:其他小说 <a rel="nofollow"
|
|
href="javascript:addBookshelfFun();">加入书架</a>
|
|
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>章节目录</a>
|
|
</p>
|
|
<p>
|
|
最新章节:<a href='{$strPcPath}{site:lcpurl n_id="$arrNovel.n_id"
|
|
n_py="$arrNovel.n_name_pinyin" /}'>{$arrNovel.arrLatestChapter.c_name ?? ""}</a>
|
|
</p>
|
|
<p>更新时间:{$arrNovel.n_update_time}</p>
|
|
</div>
|
|
<div id="intro">
|
|
{$arrNovel.n_description ?? ''}<br />
|
|
{volist name='arrNovel.n_forge_novel' id='ForgeNovel'}
|
|
<a
|
|
href='{$strPcPath}{site:nnurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" n_fid="$ForgeNovel.n_forge_id"/}'>{$ForgeNovel.n_forge_title}</a>
|
|
{/volist}
|
|
|
|
</div>
|
|
</div>
|
|
<div id="sidebar">
|
|
<div id="fmimg">
|
|
<img rc="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
|
|
alt="{$arrNovel['n_name'] ?? ''}小说封面 - {$arrNovel.n_author}最新章节" class="lazy lazyload-img"
|
|
width="120" height="150" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box_con">
|
|
<div id="list">
|
|
<dl>
|
|
<dt>
|
|
<b>《{$arrNovel.n_name}》正文目录</b>
|
|
</dt>
|
|
{include file="pc/public/allChapterPage" /}
|
|
|
|
{foreach $resData.data as $key=>$Chapter}
|
|
<dd>
|
|
{if !empty($arrGrm[$key])}
|
|
{$arrGrm[$key]|raw}
|
|
{/if}
|
|
<a href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$Chapter.c_sort_num" c_page="0"/}'>
|
|
{$Chapter.c_name}</a>
|
|
</dd>
|
|
{/foreach}
|
|
|
|
<dd>
|
|
<a href='{$strPcPath}{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}'>
|
|
返回《{$arrNovel.n_name}》第一页</a>
|
|
</dd>
|
|
{include file="pc/public/allChapterPage" /}
|
|
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<div class="hotbook"></div>
|
|
<p>{$arrNovel.strFocus ?? ""} 。看小说就来{$DomainModel->d_name} {$DomainModel->d_domain}...
|
|
</p>
|
|
</div>
|
|
<div class="hotbook">
|
|
<b>书友点击:</b>
|
|
{volist name='$arrNovel.arrRelateveNovel' id='Novel'}
|
|
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name} </a>
|
|
{/volist}
|
|
</div>
|
|
|
|
<div class="hotbook">
|
|
<b>书友收藏:</b>
|
|
{novel:list count="6" n_category="$arrNovel.n_category_pinyin" n_status="wanjie" d_key="d_key" d_val="Novel"
|
|
p_val="page_data" cache_life="86400"}
|
|
<a href='{$strPcPath}{site:nurl n_id="$Novel.n_id" n_py="$Novel.n_name_pinyin" /}'>{$Novel.n_name}</a>
|
|
{/novel:list}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
const strNovelId = `{$arrNovel.n_id}`;
|
|
const arrNovel = {
|
|
'n_id': `{$arrNovel['n_id']}`,
|
|
'n_name_pinyin': `{$arrNovel['n_name_pinyin']}`,
|
|
'n_cover_path': `{$arrNovel['n_cover_path']}`,
|
|
'n_name': `{$arrNovel['n_name']}`,
|
|
'n_author': `{$arrNovel['n_author']}`,
|
|
'n_status': `{$arrNovel['n_status']}`,
|
|
'n_description': `{$arrNovel['n_description']}`,
|
|
'n_latest_chapter_name': `{$arrNovel['n_latest_chapter_name']}`,
|
|
'n_update_time': `{$arrNovel['n_update_time']}`,
|
|
'c_sort_num': 1,
|
|
'c_name': `第一章`,
|
|
};
|
|
</script>
|
|
{/block}
|
|
|
|
{block name="customize"} {/block} |