Repository navigation
feat: 托管 Oneko 像素猫(FEATURES.oneko) - #116
Merged
Merged
Conversation
Mount oneko.dhrv.pw once from BaseLayout with View Transitions guard, footer hide toggle, nav avoid zone, and docs for toggle/credits.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
摘要
为 YuBlog 接入托管 Oneko 像素猫,放在
FEATURES.oneko开关后;默认 classic 皮肤。请合并前确认行为,本 PR 不自动合并。配置形状
行为(已确认 SPEC)
reducedMotion=hide、页脚隐藏开关、顶栏避让https://oneko.dhrv.pw/oneko.jsView Transitions
BaseLayout内联引导脚本用window.__yublogOnekoBooted只注入一次 CDN module,换页不重建第二只猫。改动文件
src/types.ts/src/config.ts— 类型与默认开src/layouts/BaseLayout.astro— 挂载src/components/base/Footer.astro—「隐藏小猫」src/components/nav/NavBar.astro—data-oneko-zone="avoid"docs/Oneko 像素猫.md+ 项目解析/站点行为 SPEC/CHANGELOG校验
pnpm exec tsc --noEmit(Node 22)通过合并前请看
FEATURES.oneko = false后不再挂载/无按钮docs/Oneko 像素猫.md、oneko docs就绪后请用户自行合并。