diff --git a/docs/superpowers/plans/2026-10-22-trade-pro-theme-port.md b/docs/superpowers/plans/2026-10-22-trade-pro-theme-port.md index af6d253..d1d3549 100644 --- a/docs/superpowers/plans/2026-10-22-trade-pro-theme-port.md +++ b/docs/superpowers/plans/2026-10-22-trade-pro-theme-port.md @@ -375,6 +375,7 @@ def test_theme_color_map_covers_trade_pro(): 3. **spec §6 "渲染快照"以 E2E 页面断言实现**(构建后逐页 200 + 结构选择器 + 文案断言),不另建 Jinja 快照测试文件。 4. **/api/themes(main.py:267)经 core.THEMES 动态化自动生效**,不设专项测试(catalog 由既有测试覆盖)。 5. **前端入口 option 文案**:三个 HTML 下拉用"Trade Pro · 外贸 B2B(英文)"中文风格与各文件现状一致(theme-gallery 用英文)。 +6. **平台数据层中文残留(Task 5 质量审查发现)**:bootstrap 生成的 8 个标准页(/about/ /contact/ /products/ /news/ 等)的 `
Add your company contact details and address here.
" }, { "id": "8c02c61415", "type": "cta", "visible": true, - "title": "欢迎联系", - "subtitle": "告诉我们您的需求,我们将提供适合的方案。", - "button": "联系我们", + "title": "Get in touch", + "subtitle": "Tell us what you need and we will propose the right solution.", + "button": "Contact Us", "href": "/contact/" } ], @@ -142,12 +142,12 @@ "id": "2c3106baf6", "type": "collection", "visible": true, - "title": "工业产品目录", - "subtitle": "为客户提供适合的解决方案", + "title": "Product catalogue", + "subtitle": "The right solutions for every buyer", "source": "product", "limit": 24, "columns": 3, - "button": "查看全部", + "button": "View All", "href": "/product/" } ], @@ -156,34 +156,34 @@ "id": "42925dc8e3", "type": "image_text", "visible": true, - "title": "产品介绍", + "title": "Product overview", "subtitle": "OUR APPROACH", "description": "{{page.summary}}", "image": "{{page.cover}}", "image_side": "right", - "button": "了解更多", + "button": "Learn More", "href": "/about/" }, { "id": "503266af35", "type": "attributes", "visible": true, - "title": "产品规格与参数" + "title": "Specifications" }, { "id": "b2b1f5293c", "type": "richtext", "visible": true, - "title": "产品详情", + "title": "Product details", "body": "{{page.body}}" }, { "id": "3837f66074", "type": "cta", "visible": true, - "title": "开启新的合作", - "subtitle": "告诉我们您的需求,我们将提供适合的方案。", - "button": "联系我们", + "title": "Start a new partnership", + "subtitle": "Tell us what you need and we will propose the right solution.", + "button": "Contact Us", "href": "/contact/" } ], @@ -206,19 +206,19 @@ "description": "{{page.summary}}", "image": "{{page.cover}}", "image_side": "right", - "button": "了解更多", + "button": "Learn More", "href": "/about/" }, { "id": "b3faf08170", "type": "collection", "visible": true, - "title": "品牌产品", - "subtitle": "为客户提供适合的解决方案", + "title": "Brand products", + "subtitle": "The right solutions for every buyer", "source": "product", "limit": 6, "columns": 3, - "button": "查看全部", + "button": "View All", "href": "/product/" } ], @@ -236,9 +236,9 @@ "id": "59383d762e", "type": "cta", "visible": true, - "title": "页面暂时无法访问", - "subtitle": "告诉我们您的需求,我们将提供适合的方案。", - "button": "返回首页", + "title": "Page not available", + "subtitle": "Tell us what you need and we will propose the right solution.", + "button": "Back to Home", "href": "/" } ], @@ -251,7 +251,7 @@ }, { "type": "richtext", - "title": "项目概述", + "title": "Project overview", "body": "{{page.body}}" } ], @@ -263,23 +263,23 @@ }, { "type": "cta", - "title": "了解更多", + "title": "Learn more", "href": "/contact/" } ], "faq": [ { "type": "faq", - "title": "常见问题", + "title": "Frequently asked questions", "items": [] } ], "category": [ { "type": "collection", - "title": "分类产品", + "title": "Products in this category", "source": "product", "limit": 24 } ] -} \ No newline at end of file +} diff --git a/themes/trade-pro/pro.html b/themes/trade-pro/pro.html index 3c3032f..991c44c 100644 --- a/themes/trade-pro/pro.html +++ b/themes/trade-pro/pro.html @@ -9,7 +9,12 @@ guarantees, so no fallback link can become a broken link. #} {% set tp_default_hrefs=['/','/about/','/brands/','/cases/','/contact/','/news/','/products/'] %} {% set tp_needs_en_nav=(not chrome_is_custom) and (nav|map(attribute='route')|list|sort==tp_default_hrefs) %} -{% set tp_nav=[{'title':'Home','route':'/'},{'title':'Products','route':'/products/'},{'title':'News','route':'/news/'},{'title':'About','route':'/about/'},{'title':'Contact','route':'/contact/'}] if tp_needs_en_nav else nav %} +{# Known false-positive window: the legacy nav editor can save settings.nav with + custom titles but no published site design (chrome_is_custom stays false). If + such a nav happens to keep exactly the default 7 hrefs, its titles are + overridden by the English fallback below. Mitigated (not eliminated) by + keeping all 7 default sections so only the labels change, never coverage. #} +{% set tp_nav=[{'title':'Home','route':'/'},{'title':'Products','route':'/products/'},{'title':'Brands','route':'/brands/'},{'title':'News','route':'/news/'},{'title':'Cases','route':'/cases/'},{'title':'About','route':'/about/'},{'title':'Contact','route':'/contact/'}] if tp_needs_en_nav else nav %} {% if chrome_is_custom %}