4.5 KiB
4.5 KiB
1294-SEONexus 老模板分类页 Patch 模板 - 2026-04-17
目的
这份文档专门服务第一批 5 个分类页文件。
它不是分析文档,而是一份“主 Codex 可直接照着写 patch”的模板说明。
适用文件:
videoDadi/video/getCategoryType.htmlvideoDingZhu/video/getCategoryType.htmlvideoBoKu/video/getCategoryType.htmlvideoLaoNiu/video/getCategoryType.htmlvideoNuNu/video/getCategoryType.html
一、这 5 个文件当前共同问题
共同点几乎完全一致:
- 缺少 canonical
og:url指向首页CollectionPage.url指向首页
对应当前老模板写法:
<meta property="og:url" content="https://{$DomainModel->d_domain}" />
以及:
"url": "https://{$DomainModel->d_domain}",
二、目标状态
统一收口成:
meta name="robots" content="index,follow"- canonical 指向当前分类页真实 URL
og:url指向当前分类页真实 URLCollectionPage.url指向当前分类页真实 URL
最稳参考来源:
三、推荐 patch 思路
第一步:在 head block 顶部补两行
在:
{block name="head"}
后面直接补:
<meta name="robots" content="index,follow">
<link rel="canonical" href='https://{$DomainModel->d_domain}{site:vciurl parent_category="$Request.route.strParentCategory" /}'>
第二步:替换 og:url
把当前:
<meta property="og:url" content="https://{$DomainModel->d_domain}" />
替换为:
<meta property="og:url" content='https://{$DomainModel->d_domain}{site:vciurl parent_category="$Request.route.strParentCategory" /}' />
第三步:替换 JSON-LD 的 CollectionPage.url
把当前:
"url": "https://{$DomainModel->d_domain}",
替换为:
"url": "https://{$DomainModel->d_domain}{site:vciurl parent_category="$Request.route.strParentCategory" /}",
四、推荐的统一替换结果
如果主 Codex 想直接对照最终形态,head block 开头应该接近下面这样:
{block name="head"}
<meta name="robots" content="index,follow">
<link rel="canonical" href='https://{$DomainModel->d_domain}{site:vciurl parent_category="$Request.route.strParentCategory" /}'>
<!-- 社交媒体标签 -->
<meta property="og:title" content='{site:replace code="VIDEO@GETCATEGORYINDEX@TITLE"}' />
<meta property="og:description" content='{site:replace code="VIDEO@GETCATEGORYINDEX@DESCRIPTION"}' />
<meta property="og:url" content='https://{$DomainModel->d_domain}{site:vciurl parent_category="$Request.route.strParentCategory" /}' />
对应 JSON-LD 开头应接近:
{
"@context": "https://schema.org",
"@type": "CollectionPage",
"name": "{$DomainModel->d_name} - 最新{site:getval code="strVideoParentCategoryName" /}推荐",
"url": "https://{$DomainModel->d_domain}{site:vciurl parent_category="$Request.route.strParentCategory" /}",
"description": "{site:replace code="VIDEO@GETCATEGORYINDEX@DESCRIPTION"}",
五、5 个文件的微差异提醒
这 5 个文件里真正需要注意的差异非常少:
videoNuNu
它的 ranklist 参数写的是:
v_category_en="$Request.route.strParentCategory"
不是别的模板常见的:
v_parent_category_en="$Request.route.strParentCategory"
但这不影响本次 patch,因为我们只改:
- canonical
og:urlCollectionPage.url
其它 4 套
这 4 套在这次 patch 涉及的区域里基本是同构的,可以直接统一处理。
六、建议验收方式
每改完 1 个文件就做一次最小验收,不要 5 个全改完才看。
页面源代码验收
确认:
- 有 canonical
- canonical 指向分类页自己
og:url指向分类页自己- JSON-LD
CollectionPage.url指向分类页自己
域名级优先验收
优先看:
ningxiaowei.comwww.ningxiaowei.comsctyjz.comwww.ap-hulan.com
七、验收后的日志观察
改完这 5 个分类页之后,连续看 3 天最值得盯的是:
category|200是否开始增加/|301是否继续下降home|301是否继续下降
一句话交接
老模板第一批最适合先落地的,就是这 5 个分类页 patch;它们结构接近、收益集中、风险低,而且能最快验证“分类页从首页附属信号变成独立聚合页”这条 SEO 主线是否开始生效。