This commit is contained in:
make
2025-04-09 20:59:55 +08:00
parent 1a39dda023
commit 1de75bb3f2
5 changed files with 27 additions and 16 deletions

View File

@@ -195,6 +195,9 @@ class Novel extends BaseController
'intTotalPage' => $arrPage['pages'],
'arrCategoryAll' => CategoryModel::$arrCategoryAll,
'arrPaginator' => $arrPaginator,
'strSearchCategory' => $strSearchCategory,
'strSearchStatus' => $strSearchStatus,
'strNovelSex' => $arrSexChinese[$strGender],
'strTitle' => $strTitle,
'strKeywords' => $strKeywords,
'strDescription' => $strDescription,
@@ -476,9 +479,6 @@ class Novel extends BaseController
// 小说详情
$arrNovel = $NovelModel->getNovelByNId($intNId);
// echo "<pre>";
// var_dump($arrNovel);exit;
// TODO n_page_description 改成 og_description
// 分品拼音
$arrNovel['category_pinyin'] = CategoryModel::getPinYinByZh($arrNovel['og_novel_category']);

View File

@@ -41,12 +41,13 @@
{block name="logo-html"}
<h1 class="logo">
<a href="/">{$DomainModel->d_name}-{$DomainModel->d_text_logo}</a>
<a href="/">{$DomainModel->d_name}-{$strNovelSex}{$strSearchCategory}{$strSearchStatus}免费阅读</a>
</h1>
{/block}
{block name="main"}
<div class="wrap">
<p class="site-description">{$strDescription??''}</p>
<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">

View File

@@ -6,15 +6,17 @@
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$strTitle??''}" />
<meta property="og:description" content="{$strDescription??''}" />
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strPageCode == 'boys' ? 'nansheng-xiaoshuo' : 'nvsheng-xiaoshuo' }" />
<meta property="og:url"
content="https://{$DomainModel->d_domain}{$strPageCode == 'boys' ? 'nansheng-xiaoshuo' : 'nvsheng-xiaoshuo' }" />
<meta property="og:type" content="book" />
<!-- 结构化数据 -->
<script type="application/ld+json">
{
"@context": "https://{$DomainModel->d_domain}{$strPageCode == 'boys' ? 'nansheng-xiaoshuo' : 'nvsheng-xiaoshuo' }",
@context": "https://schema.org”,
"@type": "book",
"headline": "{$strTitle??''}",
"description": "{$strDescription??''}",
"url": "https://{$DomainModel->d_domain}/{$strPageCode == 'boys' ? 'nansheng-xiaoshuo' : 'nvsheng-xiaoshuo' }",
"datePublished": "{:date('Y-m-d')}"
}
</script>
@@ -23,7 +25,11 @@
{block name="logo-html"}
<h1 class="logo">
<a href="/">{$DomainModel->d_name}-{$DomainModel->d_text_logo}</a>
{eq name="strPageCode" value="boys"}
<a href="/">{$DomainModel->d_name}-男生小说免费阅读</a>
{else}
<a href="/">{$DomainModel->d_name}-女生小说免费阅读</a>
{/eq}
</h1>
{/block}
@@ -31,6 +37,8 @@
<!--wrap-->
<div class="wrap">
<p class="site-description">{$strDescription??''}</p>
<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">
@@ -54,39 +62,39 @@
</ol>
</nav>
<div class="mod hot-book">
<div class="mod-head">
<h3>热门推荐</h3>
<h2>热门推荐</h2>
</div>
<div class="book-slide">
<ul class="clearfix">
{volist name="arrRecommendSerializationNovel" id="Novel" key="key"}
{include file="Public/novelListS" start="0"/}
{include file="Public/novelListS" start="0"/}
{/volist}
</ul>
</div>
</div>
<div class="mod hot-book">
<div class="mod-head">
<h3>完结推荐</h3>
<h2>完结推荐</h2>
</div>
<div class="book-slide">
<ul class="clearfix">
{volist name="arrRecommendEndNovel" id="Novel" key="key"}
{include file="Public/novelListS" start="13"/}
{include file="Public/novelListS" start="13"/}
{/volist}
</ul>
</div>
</div>
<div class="mod new-book">
<div class="mod-head">
<h3>最近更新</h3>
<h2>最近更新</h2>
</div>
<div class="book-list">
<ul class="clearfix">
{volist name="arrNewsUpdateNovel" id="Novel" key="key"}
{include file="Public/novelListH" start="21"/}
{include file="Public/novelListH" start="21"/}
{/volist}
</ul>
</div>

View File

@@ -60,7 +60,7 @@
{block name="logo-html"}
<h2 class="logo">
<a href="/">{$DomainModel->d_name}-{$DomainModel->d_text_logo}</a>
<a href="/">{$DomainModel->d_name}-小说最新章节</a>
</h2>
{/block}

View File

@@ -23,12 +23,14 @@
{block name="logo-html"}
<h1 class="logo">
<a href="/">{$DomainModel->d_name}-{$DomainModel->d_text_logo}</a>
<a href="/">{$DomainModel->d_name}--排行榜最新免费阅读</a>
</h1>
{/block}
{block name="main"}
<div class="wrap">
<p class="site-description">{$strDescription??''}</p>
<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">