inbox-bubble 預設全站掛載;_site.md 的 inbox-bubble/inbox-bubble-except 與單頁覆寫 - #10
Merged
Conversation
…ept 路徑樣式、單頁 frontmatter 可覆寫、手掛頁不重複 站主決策(2026-09-03):泡泡預設每頁都有,站主決定哪裡沒有。版面層在 body 尾端掛一顆(data-kind=site、data-id=SITE_ID、data-api-base=PLATFORM_ORIGIN、有 kaito-corpus 才 data-kaito=1);except 樣式去掉語系前綴後比對;頁面已有手掛 inbox-bubble 就不再掛;兩把鑰匙匯出到 site-core 的 site-layer key 清單供 reef-mcp 文法採用。smoke 78/78、sitetile node tests 全綠。 by KITT
cverorg
added a commit
that referenced
this pull request
Sep 3, 2026
…nbox 泡泡改帶 data-site-name(不再用頁面 title)、form action=inbox 的 email/訊息欄預設必填+原生驗證+在地化錯誤與送出後文案 - site-core.js:form 欄位語法新增 required/required: false 修飾詞,向下相容,序列化可還原 - Form.astro:required 欄位渲染原生 required + aria-required + 可見星號 + data-required-msg; action=inbox 對 email/textarea 欄位預設必填;成功文案依「email 是否保證有填」二選一, 在地化表格獨立於既有四語 Lingo 表(locale.mjs 新增 inboxFormCopy,支援簡體 zh-Hans/zh-CN) - SiteLayout.astro:inbox-bubble 掛載點加 data-site-name(沿用 header/footer 既有站名值) - site.css:nav-mobile 開啟時的遮罩(沿用既有 rf-ha-overlay 原語)+ body 捲動鎖定 - 更新 smoke-build.mjs/forms.md fixture/site-core.test.js 的對應測試
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.
站主決策:泡泡預設每頁都有,站主決定哪裡沒有。
inbox-bubble: on|off(預設 on)、inbox-bubble-except: /shop/*, /checkout(去語系前綴後比對)、單頁 frontmatterinbox-bubble覆寫;版面層在 body 尾端掛一顆(data-id=SITE_ID、data-api-base=PLATFORM_ORIGIN、有 kaito-corpus 才 data-kaito=1);手掛頁不重複;兩把鑰匙匯出供 reef-mcp 文法。smoke 78/78、node tests 綠。reef 建置腳本需在 astro build 前 export SITE_ID/PLATFORM_ORIGIN(另開)。