debug
This commit is contained in:
@@ -494,7 +494,7 @@ class Novel extends BaseController
|
||||
$intCount = mb_strlen($strFocus);
|
||||
if ($intCount > 300) {
|
||||
$intPos = mt_rand(0, $intCount - 300);
|
||||
$strFocus = mb_substr($strFocus, $intPos, 300);
|
||||
$strFocus = mb_substr($strFocus, 0, 300);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -573,29 +573,22 @@ class Novel extends BaseController
|
||||
$ChapterModel = ChapterModel::getInstance();
|
||||
$arrChapter = $ChapterModel->getLatestChapterByNId($intNId);
|
||||
|
||||
$strChapterDescription = '';
|
||||
// 上一章节和下一章节
|
||||
$arrPreChapter = $arrNextChapter = [];
|
||||
|
||||
if ($arrChapter) {
|
||||
$arrPreChapter = $ChapterModel->getPreChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
|
||||
$arrNextChapter = $ChapterModel->getNextChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
|
||||
|
||||
// 要点-先从章节随机截取,后面如果用上ai,看看使用ai 提炼 精简内容
|
||||
$strChapterDescription = strip_tags($arrChapter['content']);
|
||||
$intCount = mb_strlen($strChapterDescription);
|
||||
$strChapterDescription = ($intCount > 50) ? mb_substr($strChapterDescription, 0, 50) : $strChapterDescription;
|
||||
}
|
||||
|
||||
|
||||
$arrCategoryAll = CategoryModel::$arrCategoryAll;
|
||||
|
||||
// 模拟数据-随机推荐数据10条
|
||||
$arrNewsNovel = [
|
||||
['id' => 1, 'name' => '小说1', 'author' => '作者1'],
|
||||
['id' => 2, 'name' => '小说2', 'author' => '作者2'],
|
||||
['id' => 3, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 4, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 5, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 6, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 7, 'name' => '小说3', 'author' => '作者3'],
|
||||
['id' => 8, 'name' => '小说3', 'author' => '作者3'],
|
||||
];
|
||||
|
||||
// 更新值
|
||||
ConverterMovel::setVal([
|
||||
'intPage' => 1,
|
||||
@@ -604,6 +597,7 @@ class Novel extends BaseController
|
||||
'strNovelCategoryName' => $arrNovel['og_novel_category'],
|
||||
'strNovelStatus' => $arrNovel['og_novel_status'],
|
||||
'strNovelDescription' => $arrNovel['og_description'],
|
||||
'strChapterDescription' => $strChapterDescription,
|
||||
'strNovelChapterName' => $arrChapter['name'] ?? '',
|
||||
'strNovelChapterSort' => $arrChapter['c_sort_num'] ?? '',
|
||||
]);
|
||||
@@ -617,10 +611,6 @@ class Novel extends BaseController
|
||||
$strKeywords = ConverterMovel::convert($strKeywordsTemplate);
|
||||
$strDescription = ConverterMovel::convert($strDescriptionTemplate);
|
||||
|
||||
View::assign([
|
||||
'arrNewsNovel' => $arrNewsNovel,
|
||||
'strPageCode' => 'boy'
|
||||
]);
|
||||
View::assign([
|
||||
'arrNovel' => $arrNovel,
|
||||
'arrCategoryAll' => $arrCategoryAll,
|
||||
@@ -682,8 +672,6 @@ class Novel extends BaseController
|
||||
|
||||
$arrCategoryAll = CategoryModel::$arrCategoryAll;
|
||||
|
||||
|
||||
|
||||
// 更新值
|
||||
ConverterMovel::setVal([
|
||||
'intPage' => 1,
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
<li>
|
||||
{$arrGRM[$key]|raw}
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}"
|
||||
title="{$Chapter.name}">{$Chapter.name}</a>
|
||||
title="{$arrNovel.og_novel_book_name}-{$Chapter.name}">{$Chapter.name}</a>
|
||||
</li>
|
||||
{/volist}
|
||||
|
||||
|
||||
@@ -8,15 +8,31 @@
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}/search.html?keyword={$strSearchKeywords}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$strSearchKeywords} - {$DomainModel->d_name}搜索 - 第{$intPage}页">
|
||||
<meta name="twitter:description" content="{$strSearchKeywords}搜索结果第{$intPage}页,免费阅读小说,快来体验!">
|
||||
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}/search.html?keyword={$strSearchKeywords}",
|
||||
"@type": "book",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}/search.html?keyword={$strSearchKeywords}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$intPage}页",
|
||||
"description": "搜索‘{$strSearchKeywords}’结果第{$intPage}页,提供{$strSearchKeywords}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$DomainModel->d_name}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
@@ -33,7 +49,11 @@
|
||||
<div class="wrap">
|
||||
<div class="mod mod-search">
|
||||
<div class="search-list">
|
||||
<div class="result">搜索<span style="color:red">“{$strSearchKeywords}”</span>相关结果共有 <span style="color:red">{$arrPage.total}</span> 部小说</div>
|
||||
|
||||
<div class="result">
|
||||
<h1>{$strSearchKeywords}搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||
搜索<span style="color:red">“{$strSearchKeywords}”</span>相关结果共有 <span style="color:red">{$arrPage.total}</span> 部小说
|
||||
</div>
|
||||
{if empty($arrPage.data)}
|
||||
<p style="text-align: center;line-height: 60px">没有相关数据</p>
|
||||
{else}
|
||||
|
||||
@@ -21,7 +21,13 @@
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
|
||||
@@ -21,7 +21,13 @@
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="content">
|
||||
|
||||
|
||||
@@ -61,7 +61,13 @@
|
||||
<link rel="canonical"
|
||||
href='{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="content">
|
||||
<nav class="breadcrumb" aria-label="breadcrumb">
|
||||
|
||||
@@ -47,7 +47,13 @@
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<div class="content">
|
||||
|
||||
@@ -30,7 +30,13 @@
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{/block}
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['og_novel_book_name']??'未知小说'}" />
|
||||
<meta property="og:title" content="{$arrNovel['og_novel_book_name']??'未知小说'} {$arrChapter.name} - {$DomainModel->d_name}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' />
|
||||
@@ -35,36 +35,35 @@
|
||||
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-{$arrChapter.c_sort_num}">
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name']??'未知小说'} {$arrChapter.name} - {$DomainModel->d_name}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}",
|
||||
"@type": "book",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"datePublished": "{$arrNovel.og_novel_update_time ?? ''}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$Novel.n_cover_path ?? ''}",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}"
|
||||
}
|
||||
"isPartOf": {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "《{$arrNovel['og_novel_book_name'] ?? '未知小说'}》",
|
||||
"url": '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
|
||||
}
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel.og_novel_category ??''}",
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"hasPart": {
|
||||
"@type": "CreativeWork",
|
||||
"name": "{$arrChapter.name ?? ''}",
|
||||
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
|
||||
"description": "{$strDescription}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
@@ -178,11 +177,16 @@
|
||||
<div class="read-main-wrap font-family01" style="font-size:18px" id="j_readMainWrap">
|
||||
<div id="j_chapterBox">
|
||||
<div class="text-wrap" id="ajaxchapter-4b2d5aab58d71" data-cid="4b2d5aab58d71"
|
||||
data-purl="javascript:void(0);" data-nurl="/book/12538/486ef2abee55d.html"
|
||||
data-purl="javascript:void(0);" data-nurl=""
|
||||
data-info="0|-1|486ef2abee55d|0">
|
||||
<div class="main-text-wrap">
|
||||
<div class="text-head">
|
||||
<h3 class="j_chapterName">{$arrChapter.name ?? ''}</h3>
|
||||
<h1 class="j_chapterName">
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
|
||||
{$arrNovel.og_novel_book_name}
|
||||
</a>
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num}">{$arrChapter.name}</a>
|
||||
</h1>
|
||||
<div class="text-info cf">
|
||||
<div class="info fl">
|
||||
{$arrGRM[11]|raw}
|
||||
|
||||
@@ -28,39 +28,41 @@
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": 'https://{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['og_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"image": "{$Novel.n_cover_path ?? ''}",
|
||||
"url": '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"genre": "{$arrNovel.og_novel_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
}
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}/xiaoshuo/$arrNovel[og_novel_pin_yin]/mulu/zheng/{$intPage}",
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel['og_novel_category'] ?? '未知分类'}",
|
||||
"hasPart": {
|
||||
"@type": "WebPage",
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}章节目录 第{$intPage}页",
|
||||
"url": "https://{$DomainModel->d_domain}/xiaoshuo/$arrNovel[og_novel_pin_yin]/mulu/zheng/{$intPage}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{block name="head-css"}
|
||||
<link rel="canonical" href='https://{$DomainModel->d_domain}/xiaoshuo/$arrNovel.og_novel_pin_yin-$arrNovel.n_id/mulu/zheng" /}'>
|
||||
<link rel="canonical" href='https://{$DomainModel->d_domain}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng" /}'>
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
|
||||
<div class="content">
|
||||
@@ -89,13 +91,14 @@
|
||||
<meta itemprop="position" content="4" />
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="con_box">
|
||||
|
||||
<div class="top">
|
||||
{$arrGRM[0]|raw}
|
||||
<h3><a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' >{$arrNovel['og_novel_book_name']}</a></h3>
|
||||
<h1><a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' >{$arrNovel['og_novel_book_name']}章节目录 - {$arrNovel['og_novel_author']} - {$DomainModel->d_name} 第{$intPage}页</a></h1>
|
||||
<p>作者:{$arrNovel.og_novel_author}</p>
|
||||
</div>
|
||||
<div class="fenlei">
|
||||
@@ -110,7 +113,9 @@
|
||||
{foreach $arrPage.data as $key => $Chapter }
|
||||
<li>
|
||||
{$arrGRM[$key]|raw}
|
||||
<h2>
|
||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" >{$Chapter.name}</a>
|
||||
</h2>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
@@ -28,32 +28,33 @@
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": 'https://{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"@type": "book",
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['og_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"image": "{$Novel.n_cover_path ?? ''}",
|
||||
"url": '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"genre": "{$arrNovel.og_novel_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
}
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['og_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"genre": "{$arrNovel.og_novel_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
{/block}
|
||||
@@ -61,7 +62,13 @@
|
||||
<link rel="canonical"
|
||||
href='{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
|
||||
{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="content">
|
||||
<nav class="breadcrumb" aria-label="breadcrumb">
|
||||
@@ -85,6 +92,7 @@
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
</ol>
|
||||
<h1 class="site-description ">{$arrNovel['og_novel_book_name']}最新章节 - {$arrNovel['og_novel_author']} - {$DomainModel->d_name}</h1>
|
||||
</nav>
|
||||
|
||||
<div class="info">
|
||||
@@ -92,8 +100,8 @@
|
||||
<div class="info_L">
|
||||
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
|
||||
title="{$arrNovel['og_novel_book_name']}" class="book_cov">
|
||||
<img src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel->og_novel_book_name ?? ''}封面" class="lazyload_book_cover lazyload-img">
|
||||
<img src="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['og_novel_book_name'] ?? ''}小说封面 - {$arrNovel.og_novel_author}最新章节" class="lazyload_book_cover lazyload-img">
|
||||
<i class="serial">{$arrNovel.og_novel_status ?? ''}</i>
|
||||
</a>
|
||||
<div class="btn">
|
||||
@@ -106,9 +114,9 @@
|
||||
</div>
|
||||
<div class="info_C book_inf">
|
||||
<div class="c01">
|
||||
<h3><a
|
||||
<h2><a
|
||||
href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>{$arrNovel['og_novel_book_name']}</a>
|
||||
</h3>
|
||||
</h2>
|
||||
<!-- <span id="mod_book_star">0分</span> -->
|
||||
</div>
|
||||
<p class="c02">
|
||||
@@ -178,6 +186,7 @@
|
||||
<p>
|
||||
{$arrGRM[$key]|raw}
|
||||
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$Chapter.n_id}/zhang-{$Chapter.c_sort_num}"
|
||||
title="{$arrNovel.og_novel_book_name}-{$Chapter.name}"
|
||||
class="zj">{$Chapter.name}</a>
|
||||
<span class="time">{$Chapter.created_at}</span>
|
||||
<!-- <span class="time">3天前</span>-->
|
||||
|
||||
@@ -24,7 +24,13 @@
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
{block name='body-class'}body-rank-class{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="content content_back">
|
||||
|
||||
|
||||
@@ -8,25 +8,51 @@
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}/search.html?keyword={$strSearchKeywords}" />
|
||||
<meta property="og:type" content="book" />
|
||||
<meta property="og:site_name" content="{$DomainModel->d_name}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{$strSearchKeywords} - {$DomainModel->d_name}搜索 - 第{$intPage}页">
|
||||
<meta name="twitter:description" content="{$strSearchKeywords}搜索结果第{$intPage}页,免费阅读小说,快来体验!">
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}/search.html?keyword={$strSearchKeywords}",
|
||||
"@type": "book",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "SearchResultsPage",
|
||||
"url": "https://{$DomainModel->d_name}/search.html?keyword={$strSearchKeywords}",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_name}搜索 第{$intPage}页",
|
||||
"description": "搜索‘{$strSearchKeywords}’结果第{$intPage}页,提供{$strSearchKeywords}创作的小说免费阅读。",
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"mainEntity": {
|
||||
"@type": "Book",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$DomainModel->d_name}"
|
||||
},
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{block name="head-js"}{/block}
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<div class="content">
|
||||
<div class="find">
|
||||
|
||||
<div class="fi_t">
|
||||
<div class="result search_tip">搜索<span style="color:red">“{$strSearchKeywords}”</span>相关结果共有 <span style="color:red">{$arrPage.total}</span> 部小说</div>
|
||||
<h1>{$strSearchKeywords}搜索结果 - {$DomainModel->d_name} 第{$intPage}页</h1>
|
||||
<div class="result search_tip">
|
||||
|
||||
搜索<span style="color:red">“{$strSearchKeywords}”</span>相关结果共有 <span style="color:red">{$arrPage.total}</span> 部小说
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -23,7 +23,15 @@
|
||||
</script>
|
||||
{/block}
|
||||
{block name="head-js"}{/block}
|
||||
<link rel="canonical" href="/" />
|
||||
|
||||
|
||||
{block name="logo-html"}
|
||||
<h1>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
|
||||
@@ -22,12 +22,7 @@
|
||||
<!--公共头部 开始-->
|
||||
<div class="header">
|
||||
<div class="headWrap">
|
||||
<h1>
|
||||
<a href="/pc/">
|
||||
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
|
||||
</a>
|
||||
<!-- <p>-{$DomainModel->d_text_logo}</p> -->
|
||||
</h1>
|
||||
{block name="logo-html"}{/block}
|
||||
<ul class="nav">
|
||||
<li class=' {eq name="strPageCode" value="home"}on {/eq}'>
|
||||
<a href="/pc/" target="_self" title="首页">首页</a>
|
||||
|
||||
@@ -87,7 +87,7 @@ class TemplateSeeder
|
||||
'description' => '详情Title 替换模板分组ID',
|
||||
'sfg_id' => 10,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName} - {strNovelAuthor} - 免费在线阅读 - {strSiteName}',
|
||||
'{strNovelName} - {strNovelAuthor}- {strNovelCategoryName} - 免费在线阅读 - {strSiteName}',
|
||||
'{strNovelName} - {strNovelAuthor} - {strSiteName} - 免费阅读',
|
||||
]
|
||||
],
|
||||
|
||||
@@ -34,12 +34,13 @@ s{background: url(../images/iconC.png) no-repeat;}
|
||||
.vzj{width: 21px; height: 10px; background: url(../images/iconC.png) no-repeat -154px -48px; margin: 10px 22px 0 10px; float: right;}
|
||||
|
||||
/* 公共头部 */
|
||||
.header{width: 100%; height: 80px; background: #fff; margin-bottom: 20px;}
|
||||
.header{width: 100%; height: 80px; background: #fff; margin-bottom: 0px;}
|
||||
.headWrap{width: 1100px; margin: 0 auto;height: 80px; background: #fff;}
|
||||
/* logo */
|
||||
.headWrap h1{width: auto; height: 50px; padding-top: 15px; float: left;}
|
||||
.headWrap h1 a{width: 100%; height: 50px;font-size: 1.4rem; }
|
||||
.headWrap h1 img{width: 100%; height: 100%;}
|
||||
.headWrap h1 , .headWrap h2{width: auto; height: 50px; padding-top: 15px; float: left;}
|
||||
.headWrap h1 a , .headWrap h2 a{width: 100%; height: 50px;font-size: 1.4rem; line-height: 48px;
|
||||
}
|
||||
.headWrap h1 img , .headWrap h2 img {width: 100%; height: 100%;}
|
||||
/*导航 */
|
||||
.headWrap .nav{float: left; margin: 24px 0 0 20px;}
|
||||
.headWrap .nav li{float: left; margin: 0 2px;}
|
||||
@@ -197,7 +198,7 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
|
||||
|
||||
/* 热门推荐 */
|
||||
.content .area{width: 1064px; height: 514px; background: #fff; padding: 38px 18px 40px;}
|
||||
.content .site-description{width: 1064px; background: #fff; padding: 10px 18px 10px;font-size: 1rem;}
|
||||
.content .site-description{width: 1064px; padding: 10px 0px 0px;font-size: 1rem;}
|
||||
.f2 .area_head{overflow: hidden; margin-bottom: 15px;}
|
||||
.f2 .f2_list{overflow: hidden; padding: 0 10px;}
|
||||
.f2 .f2_list li{overflow: hidden; width: 122px; margin: 6px 0; float: left; padding: 13px 26px;}
|
||||
@@ -308,6 +309,7 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
|
||||
|
||||
/* 筛选 */
|
||||
.find{background: #fff; width: 1100px;overflow: hidden; margin-bottom: 20px;}
|
||||
.find h1{text-align: center;font-size: 1.2rem;margin-bottom: 1rem;}
|
||||
.find .fi_t{padding: 40px 0; border-bottom: 1px solid #f0f0f0; }
|
||||
.find .boFi{width: 468px; height: 38px; border: 1px solid #8a8a8a; border-radius: 20px; margin: 0 auto; overflow: hidden;}
|
||||
.find .boFi span{float: left; margin: 6px 20px 0 14px;}
|
||||
@@ -489,7 +491,7 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
|
||||
/*章节列表*/
|
||||
.con_box{padding: 0 50px; overflow: hidden;background: #fff;font-size: 12px;}
|
||||
.con_box .top{text-align: center; margin-bottom: 58px;}
|
||||
.con_box h3{font-size: 20px; font-weight: 600; margin: 45px 0 12px 0;}
|
||||
.con_box h1{font-size: 20px; font-weight: 600; margin: 45px 0 12px 0;}
|
||||
.con_box .fenlei{overflow: hidden; margin: 0 0 20px 0;}
|
||||
.con_box .fenlei .tit{width: 998px; height: 34px; border: 1px solid #f0f0f0; font-size: 14px; line-height: 34px; color: #333;}
|
||||
.con_box .fenlei .tit span{width: 4px; height: 14px; background: #f26552; margin: 10px 10px 0 10px; float: left;}
|
||||
@@ -497,6 +499,7 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
|
||||
.con_box .show .tit s{margin: 10px 10px 0 0; background-position: -64px -70px;}
|
||||
.fL_con{width: 1000px; padding: 28px 0 50px 0; overflow: hidden;}
|
||||
.fL_con ul li{float: left; width: 23%; height: 48px; line-height: 48px; border-bottom: 1px dashed #f0f0f0; padding: 0 10px;}
|
||||
.fL_con ul li h2{font-size:0.8rem}
|
||||
.fL_con ul li a{ max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
|
||||
.fL_con ul li a,.ydts a{color: #9e9e9e;}
|
||||
.fL_con ul li a:hover,.ydts a:hover{color: #f26552;}
|
||||
@@ -604,7 +607,7 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margi
|
||||
.breadcrumb {
|
||||
font-family: Arial, sans-serif;
|
||||
padding: 10px 15px;
|
||||
background-color: #f8f9fa;
|
||||
background-color: #ffffff;
|
||||
border-radius: 5px;
|
||||
margin: 10px 0;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
||||
|
||||
@@ -2285,6 +2285,9 @@ aria {
|
||||
background: #f6f7f8;
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
.search-list .result h1{
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
.search-list .result span {
|
||||
color: #fe7031;
|
||||
}
|
||||
|
||||
@@ -432,6 +432,10 @@ a:hover {
|
||||
z-index: 5;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.main-text-wrap .text-head h1{
|
||||
font-size:1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.main-text-wrap .text-head h3 {
|
||||
font: 24px/32px PingFangSC-Regular,HelveticaNeue-Light,'Helvetica Neue Light','Microsoft YaHei',sans-serif;
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user