小说第一模板 url 设计

This commit is contained in:
make
2025-03-31 09:29:56 +08:00
parent faf1b5d315
commit c3b0fd14d1
10 changed files with 258 additions and 34 deletions

View File

@@ -6,7 +6,35 @@
{block name="main"}
<div class="content">
<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="/xiaoshuo" itemprop="item">
<span itemprop="name">小说</span>
</a>
<meta itemprop="position" content="2" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/xiaoshuo/doupo-123/mulu/1" itemprop="item">
<span itemprop="name">斗破苍穹</span>
</a>
<meta itemprop="position" content="3" />
</li>
<li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<span itemprop="name">第45章</span>
<meta itemprop="position" content="4" />
</li>
</ol>
</nav>
<div class="con_box">
<div class="top">
<h3><a href="/pc/novel/334.html" target="_blank">落魄千金美食发家日常</a></h3>
<p>作者:鱼昆子</p>
@@ -16,7 +44,7 @@
<div class="fL_con">
<ul>
{foreach $arrNovelChapterAll as $category}
<li><a href="/pc/chapter/1-1-1.html" target="_blank">1 穿越</a></li>
<li><a href="/pc/xiaoshuo/name-1/zhang-1" target="_blank">1 穿越</a></li>
{/foreach}
</ul>
</div>

View File

@@ -6,6 +6,30 @@
{block name="main"}
<div class="content">
<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="/xiaoshuo" itemprop="item">
<span itemprop="name">小说</span>
</a>
<meta itemprop="position" content="2" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/xiaoshuo/doupo-123/mulu/1" itemprop="item">
<span itemprop="name">斗破苍穹</span>
</a>
<meta itemprop="position" content="3" />
</li>
</ol>
</nav>
<!--书的信息 开始-->
<div class="info">
<div class="info_box">
@@ -56,8 +80,8 @@
</div>
</div>
<div class="c04">
<a href="/pc/chapter/1-1-1.html" target="_blank" class="read">立即阅读</a>
<a href="/pc/chapters.html" target="_blank" class="mulu">目录</a>
<a href="/pc/xiaoshuo/name-1/zhang-1" target="_blank" class="read">立即阅读</a>
<a href="/pc/xiaoshuo/xiaos-pin-yin-1/mulu/zheng" target="_blank" class="mulu">目录</a>
</div>
<!-- <div class="c05">
<p class="c05_t">作品标签:
@@ -98,8 +122,10 @@
<h2>最新章节</h2>
</div>
<div class="zj_con">
<p><a href="/chapter/1-1-1.html" target="_blank" class="zj">老读者必看公告!!!</a><span
class="time">3天前</span></p>
<p>
<a href="/xiaoshuo/小说拼音-intNovelId/zhang-intChapterSort" target="_blank" class="zj">老读者必看公告!!!</a>
<span class="time">3天前</span>
</p>
<p class="zw" style="max-height: 98px; overflow: hidden;"></p>
</div>
</div>

View File

@@ -8,6 +8,7 @@
<meta name="description" content="狂雨小说">
<title>狂雨小说</title>
<link rel="stylesheet" href="/template/kuangyu/home/bai_web/css/style.css" type="text/css">
<link rel="stylesheet" href="/template/kuangyu/public/css/common.css" type="text/css">
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
{block name="head-css"}{/block}
{block name="head-js"}{/block}

View File

@@ -5,6 +5,7 @@
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>狂雨小说</title>
<link href="/template/kuangyu/user/web/css/user.css" rel="stylesheet">
<link rel="stylesheet" href="/template/kuangyu/public/css/common.css" type="text/css">
</head>
<body style="">

View File

@@ -0,0 +1,37 @@
```
最终推荐
推荐URL/xiaoshuo/[name]-[novel-id]/mulu/[order]/[page]
示例:
正序:/xiaoshuo/doupo-123/mulu/zheng/1
倒序:/xiaoshuo/doupo-123/mulu/dao/1
长拼音名:/xiaoshuo/zhong-sheng-zhi-dao-zun-456/mulu/dao/1
理由:
SEO最佳
xiaoshuo 和 mulu 保留核心关键词。
zheng 和 dao 是拼音,匹配“正序目录”“倒序目录”搜索。
语义清晰:
/mulu/zheng/1 直观表示“目录 正序 第1页”。
一致性:
与章节页(/xiaoshuo/doupo-123/zhang-45/1的拼音风格统一。
分页和排序分离:
[order] 和 [page] 分开,便于扩展其他筛选。
```
## SEO优化建议
标题:
<title>斗破苍穹 章节目录 - 全集在线阅读 - 网站名</title>
元描述:
<meta name="description" content="斗破苍穹章节目录,完整小说章节列表,免费在线阅读最新更新!">
H1标签
<h1>斗破苍穹 章节目录</h1>
面包屑:
首页 > 小说 > 斗破苍穹 > 章节目录
内部链接:
目录页链接到每个章节(如 /xiaoshuo/doupo-123/zhang-45/1提升内链权重。
Canonical标签
<link rel="canonical" href="https://www.example.com/xiaoshuo/doupo-123/mulu/1">
Sitemap
包含所有目录页URL如 /xiaoshuo/doupo-123/mulu/1、/xiaoshuo/doupo-123/mulu/2提交搜索引擎。

View File

@@ -0,0 +1,25 @@
# 小说章节页面 设计记录 grok反馈
最终推荐
推荐URL/xiaoshuo/[name]-[novel-id]/zhang-[chapter-sort]/[page]
示例:
/xiaoshuo/doupo-123/zhang-45/1
/xiaoshuo/zhong-sheng-zhi-dao-zun-456/zhang-45/1
理由:
SEO最佳
xiaoshuo 和 zhang 是高频搜索词,提升通用性。
name如 doupo匹配小说名搜索。
chapter-sort如 45匹配“第X章”。
长拼音优化:
zhong-sheng-zhi-dao-zun 已用 - 分割,语义清晰,匹配“重生 至尊”。
统一性:
PC和H5共用URL通过 request()->isMobile() 动态渲染。
简洁性:
去掉 intChapterId假设 chapterSort 足以标识章节。
## SEO优化建议
标题:<title>斗破苍穹 第45章 - 小说在线阅读 - 网站名</title>
元描述:<meta name="description" content="斗破苍穹 第45章在线阅读最新章节免费更新快来体验">
面包屑:首页 > 小说 > 斗破苍穹 > 第45章
Canonical<link rel="canonical" href="https://www.example.com/xiaoshuo/doupo-123/zhang-45/1">