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

@@ -92,6 +92,7 @@ button_num="8" cache_life="86400" func="generateCategoryPager" export_name="resD
</a> </a>
{/block} {/block}
{block name="main"} {block name="main"}
<h1 class="site-description">{site:getval code="strNovelCategoryName" /}{site:getval code="strNovelOrder" /}{site:getval code="strNovelStatus" /}小说 - 免费在线阅读</h1> <h1 class="site-description">{site:getval code="strNovelCategoryName" /}{site:getval code="strNovelOrder" /}{site:getval code="strNovelStatus" /}小说 - 免费在线阅读</h1>
<nav class="breadcrumb" aria-label="breadcrumb"> <nav class="breadcrumb" aria-label="breadcrumb">

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" /} cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="generateChapterPager" export_name="resData" /}
{/block} {/block}
{block name="title"}{site:replace code="NOVEL@GETNOVELINFO@TITLE" 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@GETNOVELINFO@KEYWORDS" 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@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}{/block} {block name="description"}{site:replace code="NOVEL@GETNOVELCATALOG@DESCRIPTION" diff="$Request.route.intNovelId"}{/block}
{block name="head"} {block name="head"}
<!-- 社交媒体标签 --> <!-- 社交媒体标签 -->
<meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" /> <meta property="og:title" content="{$arrNovel['n_name']??'未知小说'}" />
<meta property="og:description" <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" <meta property="og:url"
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' /> 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: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:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" /> <meta name="twitter:title" content="{$arrNovel['n_name'] ?? '未知小说'}" />
<meta name="twitter:description" <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 ?? ''}" /> <meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
<!-- 结构化数据 --> <!-- 结构化数据 -->
<script type="application/ld+json"> <script type="application/ld+json">
@@ -78,7 +79,7 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene
"@type": "ListItem", "@type": "ListItem",
"position": 2, "position": 2,
"name": "{$arrNovel.n_category ??''}", "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", "@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"} {block name="main"}
@@ -134,12 +139,16 @@ cache_life="86400" button_num="3" sort_type="$Request.route.strOrder" func="gene
</a> </a>
<meta itemprop="position" content="3" /> <meta itemprop="position" content="3" />
</li> </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> </ol>
</nav> </nav>
<div class="layout-root novel-web"> <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 id="w-detail" class="work-content">
<div class="w-header"> <div class="w-header">

View File

@@ -43,31 +43,58 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
<!-- 结构化数据 --> <!-- 结构化数据 -->
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "WebPage",
"name": '{site:replace code="NOVEL@GETNOVELCHAPTER@TITLE"}',
"description":'{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}',
"url": 'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}',
"publisher": {
"@type": "Organization",
"name": "{$DomainModel->d_name}",
"url": "https://{$DomainModel->d_domain}"
},
"isPartOf": {
"@type": "Book", "@type": "Book",
"name": "{$arrNovel['n_name'] ?? '未知小说'}", "name": "{$arrNovel['n_name']??'未知小说'}",
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": "{$arrNovel['n_author'] ??'佚名'}" "name": "{$arrNovel.n_author ?? ''}"
}, },
"publisher": { "genre": "{$arrNovel.n_category ?? ''}",
"@type": "Organization", "datePublished": "{time()}"
"name": "{$DomainModel->d_name}", },
"url": "https://{$DomainModel->d_domain}" "breadcrumb": {
}, "@type": "BreadcrumbList",
"image": "{$arrNovel.n_cover_path ?? ''}", "itemListElement": [
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}', {
"inLanguage": "zh-CN", "@type": "ListItem",
"genre": "{$arrNovel.n_category ??''}", "position": 1,
"datePublished": "{$arrNovel['n_update_time'] ?? time()}", "name": "首页",
"hasPart": { "item": "https://{$DomainModel->d_domain}"
"@type": "CreativeWork", },
"name": "{$arrChapter.c_name ?? ''}", {
"url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}', "@type": "ListItem",
"description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' "position": 2,
} "name": "玄幻修真",
"item": 'https://{$DomainModel->d_domain}{site:nflurl category="$Request.route.strCategory" status="$Request.route.strStatus" order="$Request.route.strOrder" page="$Request.route.intPage"/}'
},
{
"@type": "ListItem",
"position": 3,
"name": "证帝系统",
"item": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin"/}'
},
{
"@type": "ListItem",
"position": 4,
"name": "第099章 囚禁起来当成肉猪",
"item": "https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}"
}
]
}
} }
</script> </script>
{/block} {/block}
{block name="head-css"} {block name="head-css"}
@@ -81,17 +108,15 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{block name="body-id"}kkasdfei{/block} {block name="body-id"}kkasdfei{/block}
{block name="logo-html"} {block name="logo-html"}
<h2 class="bookname"> <a href="/">
<a href="/" style="color:#ffffff">{$DomainModel->d_name}</a> <h2 >-{$DomainModel->d_name}-<span>{$DomainModel->d_text_logo}</span></h2>
</h2> </a>
{/block} {/block}
{block name="main"} {block name="main"}
<nav class="breadcrumb" aria-label="breadcrumb"> <nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList"> <ol itemscope itemtype="https://schema.org/BreadcrumbList">
@@ -167,7 +192,6 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
</div> </div>
</div> </div>
<h1 class="novel-reader-title">{$arrChapter.c_name ?? ''}</h1>
<div class="content novel-content" style="padding:10px"> <div class="content novel-content" style="padding:10px">
<style> <style>

View File

@@ -78,13 +78,13 @@ $Novel.n_id{extend name="baseH5" /}
"@type": "ListItem", "@type": "ListItem",
"position": 2, "position": 2,
"name": "{$arrNovel.n_category ??''}", "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", "@type": "ListItem",
"position": 3, "position": 3,
"name": "{$arrNovel['n_name']}", "name": "{$arrNovel['n_name']}",
"item": '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' "item": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'
} }
] ]
@@ -106,32 +106,11 @@ $Novel.n_id{extend name="baseH5" /}
</h2> </h2>
{/block} {/block}
{block name="nav-html"}
<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">
<a href="/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
<a href='{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
itemprop="item">
<span itemprop="name">{$arrNovel.n_category}</span>
</a>
<meta itemprop="position" content="2" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
<span itemprop="name">{$arrNovel['n_name']}</span>
</a>
<meta itemprop="position" content="3" />
</li>
</ol>
</nav>
{block name="logo-html"}
<a href="/">
<h2 >-{$DomainModel->d_name}-<span>{$DomainModel->d_text_logo}</span></h2>
</a>
{/block} {/block}
{block name="main"} {block name="main"}
@@ -139,8 +118,32 @@ $Novel.n_id{extend name="baseH5" /}
<div class="layout-root novel-web"> <div class="layout-root novel-web">
<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">
<a href="/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<?php $arrNovel['n_category_pinyin'] ?? $arrNovel['n_category_pinyin'] = 'all'?>
<a href='{site:nflurl category="$arrNovel.n_category_pinyin" order="all" status="all" page="1"/}'
itemprop="item">
<span itemprop="name">{$arrNovel.n_category}</span>
</a>
<meta itemprop="position" content="2" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href='{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' itemprop="item">
<span itemprop="name">{$arrNovel['n_name']}</span>
</a>
<meta itemprop="position" content="3" />
</li>
</ol>
</nav>
<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 id="w-detail" class="work-content">
<div class="w-header"> <div class="w-header">

View File

@@ -37,11 +37,34 @@
<?php $strPageCode = 'rank'; ?> <?php $strPageCode = 'rank'; ?>
{/block} {/block}
{block name="logo-html"}
<a href="/">
<h2 >-{$DomainModel->d_name}-<span>{$DomainModel->d_text_logo}</span></h2>
</a>
{/block}
{block name="main"} {block name="main"}
{site:grm page_code="h5_rank" diff="0" num="100" g_key="arrGrm" /} {site:grm page_code="h5_rank" diff="0" num="100" g_key="arrGrm" /}
<h1 class="site-description">{site:getval code="strNovelStatus" /}小说{site:getval code="strNovelOrder" /}排行榜 - 免费在线阅读</h1>
<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">
<a href="/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="{$strRankUrlTemp}" itemprop="item">
<span itemprop="name">排行榜</span>
</a>
<meta itemprop="position" content="2" />
</li>
</ol>
</nav>
<div class="layout-root"> <div class="layout-root">
<div id="w-rank"> <div id="w-rank">
<div class="header"> <div class="header">