From 73f3d5142d78dc4853200ad249d2615ec3b16d30 Mon Sep 17 00:00:00 2001 From: tt-a1i <2801884530@qq.com> Date: Sat, 28 Nov 2026 10:53:03 +0800 Subject: [PATCH] feat(seo): ship GEO & Technical SEO v5 metadata, internal links, og:type, and breadcrumbs --- website/src/content/agent-diagrams.en.md | 12 +++-- website/src/content/agent-diagrams.zh.md | 12 +++-- website/src/data/llms-full.txt | 2 + website/src/data/published-cases.mjs | 6 +-- website/src/data/site-metadata.mjs | 69 ++++++++++++++++++------ website/src/layouts/SiteLayout.astro | 2 +- website/test/agent-diagrams.test.mjs | 33 ++++++++++++ website/test/compare.test.mjs | 4 ++ website/test/llms-full.test.mjs | 3 ++ website/test/localized-metadata.test.mjs | 6 +++ website/test/schema-faq.test.mjs | 49 +++++++++++++++-- website/test/seo-content.test.mjs | 22 +++++--- 12 files changed, 181 insertions(+), 39 deletions(-) diff --git a/website/src/content/agent-diagrams.en.md b/website/src/content/agent-diagrams.en.md index 7854692f3e..9924f56459 100644 --- a/website/src/content/agent-diagrams.en.md +++ b/website/src/content/agent-diagrams.en.md @@ -28,10 +28,10 @@ Archify supports ten native diagram types. The agent picks the type that fits th - **dataflow** — sources, transforms, stores, and sinks. - **lifecycle** — states, transitions, and guards. - **erd** — entities, keys, and relationship cardinality. -- **class** — types, fields, methods, inheritance and composition. -- **tree** — file, organizational, or decision hierarchies. -- **timeline** — dated or ordered events and their relationships. -- **waterfall** — timed spans, overlap, and nesting within a request or agent run. +- **class** — types, fields, methods, inheritance and composition, as in the [payment module class diagram](https://archify.si/gallery/artifacts/payments.class). +- **tree** — file, organizational, or decision hierarchies, as in the [payment platform capability tree](https://archify.si/gallery/artifacts/payment-platform.tree). +- **timeline** — dated or ordered events and their relationships, as in the [payment incident timeline](https://archify.si/gallery/artifacts/payment-incident.timeline). +- **waterfall** — timed spans, overlap, and nesting within a request or agent run, as in the [checkout request waterfall](https://archify.si/gallery/artifacts/checkout-request.waterfall). For new architecture diagrams, the Skill uses `layout.mode: "auto"` to place components from their relationships while preserving any positions and routes you supply. This setting applies only to architecture diagrams. @@ -218,6 +218,10 @@ Yes. See [how to use Mermaid as agent input](#mermaid-input) for a small example No. A clear description can be enough. A repository becomes useful when the diagram must explain real code and you want inspectable source evidence. +### When should I use Architecture Diagnosis vs. PR walkthroughs? + +Use [Architecture Diagnosis](#repository-evidence) to run static Code Analysis on a repository and inspect dependencies, cycles, and hotspots. Use [PR walkthroughs](#review-and-share) with `archify-pr` to mark what changed on a diagram for a GitHub PR or GitLab MR. + ### Is it free, and which Archify is this? This guide concerns the [tt-a1i/archify open-source project](https://github.com/tt-a1i/archify), whose official website is [archify.si](https://archify.si). Its code is Apache-2.0 licensed. Your agent or other services may have their own costs and terms. A similarly named browser extension or paid service is not affiliated with this project. See the [tool comparison](compare.html) for when another diagramming tool fits better. diff --git a/website/src/content/agent-diagrams.zh.md b/website/src/content/agent-diagrams.zh.md index f39d590b20..cf46c69d16 100644 --- a/website/src/content/agent-diagrams.zh.md +++ b/website/src/content/agent-diagrams.zh.md @@ -28,10 +28,10 @@ Archify 支持十种原生图型。Agent 先按问题选型,再编写对应的 - **dataflow(数据流)**:数据源、转换、存储与去向。 - **lifecycle(生命周期)**:状态、迁移与守卫条件。 - **erd(实体关系图)**:实体、键与关系基数。 -- **class(类图)**:类型、字段、方法,以及继承与组合。 -- **tree(树图)**:文件、组织或决策层级。 -- **timeline(时间线)**:带日期或顺序的事件及其关系。 -- **waterfall(瀑布图)**:一次请求或 Agent 运行中各段的耗时、重叠和嵌套。 +- **class(类图)**:类型、字段、方法,以及继承与组合,见[支付模块类图](https://archify.si/gallery/artifacts/payments.class)。 +- **tree(树图)**:文件、组织或决策层级,见[支付平台能力树图](https://archify.si/gallery/artifacts/payment-platform.tree)。 +- **timeline(时间线)**:带日期或顺序的事件及其关系,见[支付故障时间线](https://archify.si/gallery/artifacts/payment-incident.timeline)。 +- **waterfall(瀑布图)**:一次请求或 Agent 运行中各段的耗时、重叠和嵌套,见[结账请求瀑布图](https://archify.si/gallery/artifacts/checkout-request.waterfall)。 新建架构图时,Skill 使用 `layout.mode: "auto"` 根据组件关系自动摆放组件,并保留你指定的位置和连线路径。此设置仅适用于架构图。 @@ -218,6 +218,10 @@ Archify 支持架构图、工作流、时序图、数据流、生命周期、实 不需要。足够清楚的文字描述即可作为起点。只有当图需要解释真实代码、并希望检查源码证据时,仓库才成为重要输入。 +### 检查仓库依赖和解释一次 PR,分别用哪个功能? + +用[架构诊断](#repository-evidence)对仓库运行静态 Code Analysis,检查模块依赖、循环依赖和热点。要解释一次 GitHub PR 或 GitLab MR,就用 [`archify-pr` 的变更讲解](#review-and-share),在图上标记这次改动涉及的部分。 + ### 免费吗?这里说的是哪个 Archify? 这里指 [tt-a1i/archify 开源项目](https://github.com/tt-a1i/archify),官方网站是 [archify.si](https://archify.si)。项目代码采用 Apache-2.0 许可证。你使用的 Agent 或其他服务可能另有费用与条款;同名浏览器插件或收费服务与该项目无关。何时选择其他画图工具,可看[工具对比](compare.html)。 diff --git a/website/src/data/llms-full.txt b/website/src/data/llms-full.txt index 1ccc7d40d0..411f06357c 100644 --- a/website/src/data/llms-full.txt +++ b/website/src/data/llms-full.txt @@ -362,7 +362,9 @@ extension and any paid hosted service using the name "Archify" (such as - https://archify.si/gallery — validated interactive artifacts (work, life, engineering) with sources. - https://archify.si/community — independent packages and community extensions built on Archify. - https://archify.si/agent-diagrams — how coding agents author, review, and share diagrams. +- https://archify.si/zh/agent-diagrams — Chinese guide for coding agents across 10 diagram types, Architecture Diagnosis, explainers, and PR walkthroughs. - https://archify.si/compare — Archify vs Mermaid, Excalidraw, PlantUML, and D2. +- https://archify.si/zh/compare — Chinese comparison guide covering draw.io, ProcessOn, Mermaid, Excalidraw, PlantUML, D2, LikeC4, and Eraser.io. - https://archify.si/cases/explainer/first-rental — everyday one-page explainer: first-time apartment rental checklist. - https://archify.si/cases/life/leave-plan.workflow — everyday planning workflow: annual leave schedule. - https://archify.si/cases/life/renting.sequence — everyday negotiation sequence: renting walkthrough. diff --git a/website/src/data/published-cases.mjs b/website/src/data/published-cases.mjs index 8cf51005fe..19721a922f 100644 --- a/website/src/data/published-cases.mjs +++ b/website/src/data/published-cases.mjs @@ -7,7 +7,7 @@ export const PUBLISHED_CASES = [ artifact: 'cases/life/leave-plan.workflow.html', input: 'cases/life/leave-plan.workflow.json', title: '一年的年假怎么排', - description: '查看一份基于 Archify 生成的中文年假安排可交互工作流图:清晰串联全年休假节点、调休组合、剩余额度与规则提醒,支持节点聚焦与链路追踪。此为示例计划,不代表真实日历或公司的休假政策。', + description: '想把分散的年假和调休安排放到同一张图上?打开 Archify 中文交互工作流图,按时间查看各段休假、调休组合、规则提醒和剩余额度。点击节点追踪请假路径,再核对每段用掉的额度如何汇入全年合计,避免重复扣减。也可以对照结构化源文件查看图中的节点与连线。此为示例计划,不代表真实日历或公司的休假政策。', language: 'zh-CN', }, { @@ -28,7 +28,7 @@ export const PUBLISHED_CASES = [ artifact: 'cases/life/renting.sequence.html', input: 'cases/life/renting.sequence.json', title: '租一套房,一来一回都在这里', - description: '用 Archify 中文可交互时序图完整梳理租客、中介与房东之间的看房、议价、合同核对、签约、付款与房屋交接全流程,支持点击聚焦单步交互与角色路径。金额和流程仅为示例。', + description: '第一次租房,想弄清每一步该和谁确认?打开 Archify 中文交互时序图,按时间查看租客、中介和房东在联系看房、议价、核对合同、签约付款和交接房屋时如何沟通。点击消息查看当时谁向谁提出要求,再沿角色路径查看下一步由谁接手,例如谁核对合同条款,谁在交接时确认房屋状况。金额和流程仅为示例。', language: 'zh-CN', }, { @@ -74,7 +74,7 @@ export const PUBLISHED_CASES = [ artifact: 'cases/astron-agent-runtime.architecture.html', input: 'cases/astron-agent-runtime.architecture.json', title: 'Astron Agent 运行时架构', - description: '查看 Astron Agent 在固定提交 a77c92a 的源码实证运行时架构图:完整呈现入口层、核心服务职责、状态存储与模块调用边界,支持节点聚焦与链路追踪。此图依据源码编写对齐,非运行时 trace。', + description: '想了解 Astron Agent 如何组织运行时职责?打开固定提交 a77c92a 对应的 Archify 交互架构图,查看入口层、核心服务、状态存储和模块调用边界。点击组件聚焦其职责,沿连线查看上下游,再对照结构化源文件与固定版本代码。图中关系依据该提交的静态源码整理,非运行时 trace。', language: 'zh-CN', }, ]; diff --git a/website/src/data/site-metadata.mjs b/website/src/data/site-metadata.mjs index c3a835274e..019b3815a8 100644 --- a/website/src/data/site-metadata.mjs +++ b/website/src/data/site-metadata.mjs @@ -2,42 +2,68 @@ import { canonicalUrl, canonicalOrigin } from './site-urls.mjs'; import { faqFacts } from './faq-facts.mjs'; const descriptions = { 'cases/mco-runtime': { - en: ['Archify MCO Runtime Case — Source-backed Architecture', 'Follow pinned MCO source to distinguish provider-output decoding, streamed answer writes and retained artifacts. Read the existing Archify diagram with explicit evidence limits.'], - zh: ['Archify MCO 运行时案例 — 对照源码阅读架构', '沿固定提交的 MCO 源码对照阅读运行时架构,清晰区分输出解码、流式答案写入与产物保留边界;结合 Archify 已校验交互架构图理解职责拆分、持久化条件与源码证据范围,不依赖运行时追踪。'], + en: ['Archify MCO Runtime Case — Source-backed Architecture', 'Follow output decoding, streamed answer writes, and artifact retention in the Archify diagram and pinned MCO source at 9f1a1cf. Evidence is static only.'], + zh: ['Archify MCO 运行时案例 — 对照源码阅读架构', '想知道 MCO 怎样解码输出、流式写入答案,以及何时保留产物?打开 Archify 交互架构图,对照固定提交 9f1a1cf 的源码,查看调用运行时与报告写入器各自负责什么,并追踪关闭持久化后临时目录如何清理。文中给出源码链接和复核步骤,结论仅限该版本的静态证据。'], }, 'agent-diagrams': { - en: ['Archify Agent Diagramming Guide — Explain Ideas, Plans & Code', 'Turn any plain-language idea, everyday plan, Mermaid draft, or repository into 10 interactive diagram types, 4-style explainers, Story 1080p walkthroughs, PR diffs, or built-in Architecture Diagnosis with Claude Code, Codex, Cursor, OpenCode, or GitHub Copilot.'], + en: ['Archify Agent Diagramming Guide — Explain Ideas, Plans & Code', 'Use Archify with Claude Code, Codex, or Cursor. Learn when to use each of 10 diagram types, explainers, Architecture Diagnosis, and PR walkthroughs.'], zh: ['Archify Agent 画图指南 — 从想法、生活规划到代码仓', '用 Claude Code、Codex、Cursor、OpenCode 或 GitHub Copilot 把自然语言想法、生活流程、Mermaid 草稿或代码仓库快速变成十种可交互 HTML 图、四风格一页式解答、Story 1080p 演练视频与内置架构诊断。'], }, compare: { - en: ['Archify vs Mermaid, Excalidraw, PlantUML & D2 — Mermaid Alternatives for AI Coding Agents', 'Looking for a Mermaid or draw.io alternative for interactive architecture diagrams with Claude Code, Cursor, or Codex? Compare Archify with Mermaid, draw.io, Excalidraw (including MCP), PlantUML, D2, LikeC4, and Eraser.io across 10 diagram types, 4-style explainers, Architecture Diagnosis, Story 1080p video, and honest limits.'], - zh: ['Archify 对比 draw.io、ProcessOn、Mermaid、Excalidraw、PlantUML 与 D2 — AI 画流程图与架构图选型指南', '寻找比 draw.io、ProcessOn、Mermaid 更适合 Claude Code、Cursor、Codex 的 AI 交互式架构图与流程图工具?全面对比 Archify 与 draw.io、ProcessOn、Mermaid、Excalidraw(含 MCP)、PlantUML、D2、LikeC4、Eraser.io:10 种图型、4 风格一页解答、内置架构诊断与 Story 视频导出。'], + en: ['Archify | Mermaid Alternatives for AI Coding Agents', 'Compare Archify with Mermaid, draw.io, Excalidraw, PlantUML, D2, LikeC4, and Eraser.io. See its 10 diagram types and where each tool is a better fit.'], + zh: ['Archify 对比 draw.io、ProcessOn、Mermaid:AI 流程图怎么选', '流程图和架构图该用什么工具?对照 Archify 与 draw.io、ProcessOn、Mermaid、Excalidraw、PlantUML、D2、LikeC4、Eraser.io,了解 10 种图型和架构诊断的用途,查看实际成品,判断何时选择手动画图、文本绘图或 Agent 工作流。'], }, index: { - en: ['Archify — Interactive Diagrams, Explainers, Diagnosis & Story Video', 'Open-source (Apache-2.0) AI agent skill turning any idea, everyday plan, concept, Mermaid draft, or codebase into 10 interactive HTML diagram types, 4-style explainers, built-in Architecture Diagnosis, PR walkthroughs, and 1080p Story videos.'], + en: ['Archify — Interactive Diagrams, Explainers, Diagnosis & Story Video', 'An open-source Agent Skill (Apache-2.0) with offline HTML, 10 diagram types, explainers, Architecture Diagnosis, Story video export, and PR walkthroughs.'], zh: ['Archify — 把万物变成可互动的可视化图表与一页式解答', '开源免费(Apache-2.0)的 AI Agent 技能,无需画图语法即可把生活规划、复杂知识、旅行攻略或代码仓库变成独立可交互 HTML:覆盖 10 种原生图型、4 套风格一页式解答、内置架构诊断、Story 1080p 演练视频与 PR 变更可视化。'], }, guide: { - en: ['Archify Scenario Guide — 10 Diagram Types Beyond Code', 'Choose from 10 native interactive diagram types (architecture, workflow, sequence, dataflow, lifecycle, ERD, class, tree, timeline, waterfall) across everyday plans, concepts, and engineering systems.'], - zh: ['Archify 场景指南 — 十种原生图型,从生活到系统都能画', '围绕你想讲清的问题选择十种原生可交互图型(架构、工作流、时序、数据流、状态、ER、类图、树图、时间线、瀑布图),覆盖生活规划、知识拆解与软件工程系统,附带开箱即用提示词与校验成品示例。'], + en: ['Archify Scenario Guide — 10 Diagram Types Beyond Code', 'Choose among 10 interactive diagram types for everyday plans, concepts, and software systems. Copy a starter prompt and inspect a validated example.'], + zh: ['Archify 场景指南 — 十种原生图型,从生活到系统都能画', '不知道该用哪种图来解释手头的问题?按生活规划、知识拆解和软件工程场景选择图型,了解架构、工作流、时序、数据流、状态、ER、类图、树图、时间线和瀑布图各自适合表达什么。复制入门提示词交给 Agent,再对照已校验的交互成品,判断它能否讲清你关心的步骤、关系或时间顺序。'], }, start: { - en: ['Archify Start — Install & Create Visual HTML in Moments', 'Install Archify once for Claude Code, Codex, Cursor, OpenCode, or GitHub Copilot and turn a plain-English idea, workflow, or repository into interactive HTML diagrams, explainers, Architecture Diagnosis, or Story videos with zero diagram syntax.'], - zh: ['Archify 快速上手 — 几分钟装好,一句话画出交互网页', '一键安装 Archify 到 Claude Code、Codex、Cursor、OpenCode 与 GitHub Copilot,零画图语法起步,用一句自然语言或仓库路径快速产出十种交互 HTML 图表、一页式解答、架构诊断与 Story 演练视频。'], + en: ['Archify Start — Install & Create Visual HTML in Moments', 'Install Archify for Claude Code, Codex, Cursor, OpenCode, or GitHub Copilot. Copy a starter prompt to turn an idea or repository into interactive HTML.'], + zh: ['Archify 快速上手 — 几分钟装好,一句话画出交互网页', '想把一句话或一个仓库变成交互网页?先确认 Agent 能读写文件并运行 Node.js,再选 Claude Code、Codex、Cursor、OpenCode 或 GitHub Copilot,复制对应安装命令。按你的问题选一个图型和入门示例,直接用自然语言或仓库路径开始制作。'], }, gallery: { - en: ['Archify Proof Lab — Validated Diagram Gallery', 'Explore validated Archify diagrams across all 10 native types and 4-style one-page answers with interactive HTML, their JSON or Markdown sources, and recorded checks. Automated validation and human visual review appear separately.'], - zh: ['Archify 验证作品集 — 可探索的图表成品', '探索经过结构与布局自动检查的 Archify 真实验证作品集:覆盖全部 10 种原生图型与 4 套排版风格一页式解答,每件离线可交互 HTML 均附对应 JSON 或 Markdown 源码与检查记录,自动验证与人工视觉评审分列展示。'], + en: ['Archify Proof Lab — Validated Diagram Gallery', 'Explore 10 diagram types and one-page explainers in interactive HTML. Inspect their sources, automated validation, and separate human visual review status.'], + zh: ['Archify 验证作品集 — 可探索的图表成品', '想先看成品再决定用哪种图?在 Archify 作品集按用途浏览 10 种原生图型和四种风格的一页式解答,打开离线可交互 HTML,再查看对应的 JSON 或 Markdown 源文件。每件作品分别标明结构与布局的自动验证结果和人工视觉评审状态,方便核对已经完成哪些检查。'], }, community: { en: ['Archify Community — Packages Built on Archify', 'Explore independent packages built on Archify: skills, recipes, themes, locales, and CLI wrappers, with source, license, compatibility, and evidence.'], - zh: ['Archify 社区 — 基于 Archify 的独立包', '浏览围绕 Archify 构建的独立社区生态包,涵盖 Agent 技能、场景配方、视觉主题、多语言本地化包与 CLI 封装,逐一标明开源仓库地址、许可证协议、版本兼容性与实测验证证据,方便按需选用。'], + zh: ['Archify 社区 — 基于 Archify 的独立包', '想为 Archify 找到适合自己场景的扩展?浏览社区独立维护的 Agent 技能、场景配方、视觉主题、本地化包和 CLI 封装,查看各项目的源码仓库、许可证、兼容版本和验证证据。先按包类型筛选,再打开条目中的证据链接核对使用条件和示例,判断它能否用于你现有的工作流。'], }, }; const websiteId = `${canonicalOrigin}/#website`; const softwareId = `${canonicalOrigin}/#software`; const sourceId = `${canonicalOrigin}/#source`; const articlePages = ['agent-diagrams', 'cases/mco-runtime', 'compare']; +const breadcrumbNames = { + index: { en: 'Home', zh: '首页' }, + 'cases/mco-runtime': { en: 'MCO Case', zh: 'MCO 案例' }, + 'agent-diagrams': { en: 'Agent Diagrams', zh: 'Agent 画图' }, + compare: { en: 'Compare', zh: '工具对比' }, + gallery: { en: 'Proof Lab', zh: '验证作品集' }, + guide: { en: 'Guide', zh: '场景指南' }, + start: { en: 'Get started', zh: '开始使用' }, + community: { en: 'Community', zh: '社区包' }, +}; +const featureLists = { + en: [ + '10 native diagram types in offline interactive HTML', + 'One-page explainers in four presentation styles', + 'Architecture Diagnosis for repository dependencies, cycles, and hotspots', + '1080p Story video export', + 'PR walkthroughs for GitHub and change diagrams for GitLab merge requests', + ], + zh: [ + '10 种可离线交互的原生 HTML 图型', + '四种排版风格的一页式解答', + '通过架构诊断检查仓库依赖、循环和热点', + '导出 1080p Story 演练视频', + 'GitHub PR 变更讲解与 GitLab MR 变更图', + ], +}; const language = lang => (lang === 'zh' ? 'zh-Hans' : 'en'); function answerFact(fact, lang) { const index = lang === 'zh' ? 1 : 0; @@ -46,6 +72,16 @@ function answerFact(fact, lang) { export function pageMetadata(page, lang, version) { const [title, description] = descriptions[page][lang]; const canonical = canonicalUrl(page, lang); + const isArticle = articlePages.includes(page); + const breadcrumbs = page === 'index' ? [] : [{ + '@type': 'BreadcrumbList', + itemListElement: ['index', page].map((crumb, index) => ({ + '@type': 'ListItem', + position: index + 1, + name: breadcrumbNames[crumb][lang], + item: canonicalUrl(crumb, lang), + })), + }]; const faq = page === 'index' ? [{ '@type': 'FAQPage', '@id': `${canonicalOrigin}/#faq-${language(lang)}`, @@ -58,15 +94,16 @@ export function pageMetadata(page, lang, version) { return { '@type': 'Question', name: question, acceptedAnswer: { '@type': 'Answer', text: answer } }; }), }] : []; - return { title, description, canonical, image: `${canonicalOrigin}/assets/archify-social-preview.png`, + return { title, description, canonical, ogType: isArticle ? 'article' : 'website', image: `${canonicalOrigin}/assets/archify-social-preview.png`, schema: { '@context': 'https://schema.org', '@graph': [ { '@type': 'WebSite', '@id': websiteId, url: `${canonicalOrigin}/`, name: 'Archify', inLanguage: ['en', 'zh-Hans'] }, { '@type': 'SoftwareSourceCode', '@id': sourceId, name: 'Archify', codeRepository: 'https://github.com/tt-a1i/archify', url: 'https://github.com/tt-a1i/archify', license: 'https://github.com/tt-a1i/archify/blob/main/LICENSE', version, programmingLanguage: 'JavaScript', description: descriptions.index[lang][1], targetProduct: { '@id': softwareId } }, - { '@type': 'SoftwareApplication', '@id': softwareId, name: 'Archify', url: `${canonicalOrigin}/`, applicationCategory: 'DeveloperApplication', operatingSystem: 'macOS, Linux, Windows', isAccessibleForFree: true, license: 'https://www.apache.org/licenses/LICENSE-2.0', softwareVersion: version, description: descriptions.index[lang][1], offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' }, sameAs: ['https://github.com/tt-a1i/archify', 'https://skills.sh/tt-a1i/archify/archify'], subjectOf: [ + { '@type': 'SoftwareApplication', '@id': softwareId, name: 'Archify', url: `${canonicalOrigin}/`, applicationCategory: 'DeveloperApplication', operatingSystem: 'macOS, Linux, Windows', isAccessibleForFree: true, license: 'https://www.apache.org/licenses/LICENSE-2.0', softwareVersion: version, description: descriptions.index[lang][1], featureList: featureLists[lang], offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' }, sameAs: ['https://github.com/tt-a1i/archify', 'https://skills.sh/tt-a1i/archify/archify'], subjectOf: [ { '@type': 'NewsArticle', name: 'GitHub最热架构图Agent,开发者故事看哭了', url: 'https://www.qbitai.com/2026/09/482469.html', datePublished: '2026-09-01', inLanguage: 'zh-Hans', publisher: { '@type': 'Organization', name: 'QbitAI (量子位)' } }, { '@type': 'NewsArticle', name: 'GitHub三榜第一背后,一个“专升本”工程师的十年', url: 'https://www.qbitai.com/2026/09/488519.html', datePublished: '2026-09-13', inLanguage: 'zh-Hans', publisher: { '@type': 'Organization', name: 'QbitAI (量子位)' } }, ] }, - ...(articlePages.includes(page) ? [{ '@type': 'TechArticle', '@id': `${canonical}#article`, url: canonical, headline: title, description, inLanguage: language(lang), isPartOf: { '@id': websiteId }, about: { '@id': softwareId } }] : []), + ...(isArticle ? [{ '@type': 'TechArticle', '@id': `${canonical}#article`, url: canonical, headline: title, description, inLanguage: language(lang), isPartOf: { '@id': websiteId }, about: { '@id': softwareId } }] : []), + ...breadcrumbs, ...faq, ] }, }; diff --git a/website/src/layouts/SiteLayout.astro b/website/src/layouts/SiteLayout.astro index 1aa1a33cc2..b9d872cf34 100644 --- a/website/src/layouts/SiteLayout.astro +++ b/website/src/layouts/SiteLayout.astro @@ -33,7 +33,7 @@ const resourceHead = head.replace(/]*>/gi, '').replace(/