This commit is contained in:
make
2025-04-23 16:55:32 +08:00
parent 485ef71f9a
commit 637a50911e
5 changed files with 124 additions and 64 deletions

View File

@@ -9,16 +9,17 @@ $Novel.n_id{extend name="baseH5" /}
cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
{/block}
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" diff="$Request.route.intNovelId" /}{/block}
{block name="keywords"}{site:replace code="NOVEL@GETNOVELINFO@KEYWORDS" diff="$Request.route.intNovelId"}{/block}
{block name="description"}{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block}
{block name="title"}{site:replace code="NOVEL@GETNOVELCATALOG@TITLE" diff="$Request.route.intNovelId" /}{/block}
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCATALOG@KEYWORDS" diff="$Request.route.intNovelId"}{/block}
{block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION" diff="$Request.route.intNovelId"}{/block}
{block name="head"}
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
<meta property="og:description"
content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}' />
content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION" diff="$Request.route.intNovelId"}' />
<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" />
@@ -38,7 +39,7 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene
<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@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}' />
content='{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION" diff="$Request.route.intNovelId"}' />
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
<!-- 结构化数据 -->
<script type="application/ld+json">
@@ -78,7 +79,7 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene
"@type": "ListItem",
"position": 2,
"name": "{$arrNovel.n_category ??''}",
"item": 'https://{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
"item": 'https://{$DomainModel->d_domain}{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
},
{
"@type": "ListItem",
@@ -108,7 +109,11 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene
{block name="logo-html"}
<a href="/">
<h2 >-{$DomainModel->d_name}-<span>{$DomainModel->d_text_logo}</span></h2>
</a>
{/block}
{block name="main"}
@@ -134,12 +139,16 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene
</a>
<meta itemprop="position" content="3" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href='{site:nclurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" order="zheng" page="1"/}' itemprop="item"><span itemprop="name">章节目录</span></a>
<meta itemprop="position" content="4">
</li>
</ol>
</nav>
<div class="layout-root novel-web">
<h1 class="site-description ">{$arrNovel['n_name']}最新章节 - {$arrNovel['n_author']} - {$DomainModel->d_name}</h1>
<h1 class="site-description ">{$arrNovel['n_name']}章节目录 - {$arrNovel['n_author']} - {$DomainModel->d_name}</h1>
<div id="w-detail" class="work-content">
<div class="w-header">