Repository navigation
页脚删除静态说明句与 sitemap.xml 入口 - #17
Merged
Merged
Conversation
页脚品牌区只留 tagline 一句;「外部」组删掉面向机器的 sitemap.xml 链接, 生成逻辑、robots.txt 引用与 canonical 行为保持不变。 Checkpoint: 4peZgo8gKhi63NymhrTSC
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://tds-conv-01a1bedb-b3ea-7306-a894-bb5efd0973cb-workerhub.pama.workers.dev (commit 24d336b)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
{SITE.tagline}。。/sitemap.xml的入口<li>——它是给机器看的功能页,对访客无意义。Changes
src/components/site/site-footer.astro(唯一改动文件,+1 / −8){SITE.tagline}。(变短后 Prettier 合并为一行,内容不变)。sitemap.xml的整个<li>;「GitHub 组织」「本站源码 / 投稿」两项保留。明确保留(禁区复核)
src/pages/sitemap.xml.ts生成逻辑、src/pages/robots.txt.ts的Sitemap:引用、src/layouts/base-layout.astro的<link rel="sitemap">均未改——删的只是页脚入口。src/pages/about/index.astro那段措辞不同的说明(「无登录、无账号系统、无后端接口、无数据库…」)未动。Testing
/sitemap.xml仍可用:pnpm build产出dist/sitemap.xml(23 条<url>),本地静态服务 GET 返回 HTTP 200、content-type: application/xml、2172 字节;/robots.txt仍含Sitemap: https://hub.oneboy.app/sitemap.xml,首页仍输出<link rel="sitemap" href="/sitemap.xml">。pnpm test:136 项,通过 135、失败 0、跳过 1(tests/pipeline-cli.test.ts里预置的skip,与本次无关)。pnpm lint:astro check63 个文件 0 错 0 警;Prettier 全仓通过。pnpm validate:data:11 个项目校验通过。pnpm build:24 页构建成功。sitemap.xml字样;页脚高 268px,无横向溢出;底部版权行、版本与构建行齐全。github.com大面积 504 导致外链可达性检查超时,与本次改动无关,恢复后重跑通过。