{# trade-pro brand detail — 品牌详情精修(Task 11,次要页面收官)。 设计参照(本轮无 cms 源对应):上游 themes/automotive/versions/1.4.0/ pages/brand.html 的信息架构——品牌横幅(面包屑 + 眉题/h1/导语 + 页内 锚点按钮 + 品牌图)→ 车型/产品网格(section heading + "全部"动作位)→ 品牌故事(眉题 + h2 + 正文);industrial 1.3.0 为同构薄形态。本模板以 sf-tp 设计语言重组:sf-tp-page-hero(10c 内页 hero:封面底图 + brand-soft 罩层)+ sf-tp-section-head/card-grid(10a 卡片系)+ sf-tp-article-body 排版层双挂(10d)。 数据事实(make_context 对 brand kind):related = fields.brand 与页题 (或 fields.brand 字段)一致的产品/车型集合——品牌页的产品网格只信它; 派生品牌页(builder 从产品 brand 字段派生 /brands//)body/cover 恒空、summary 是平台占位串「相关品牌及产品」——导语按 authored 判定 排除占位串(home.html 排除「首页」同款决策),空品牌不虚构介绍: 无产品给数据无关的英文导语 + 空态卡,绝不编造品牌故事。 面包屑 Brands 链接 /brands/(required_sections 恒保证该路由存在); hero 锚点按钮锚到 #tp-brand-products(构建器豁免 # 锚点,10h 同款)。 #} {% set tp_brand_summary = page.summary if page.summary and page.summary != '相关品牌及产品' else '' %} {# 导语优先级:authored 摘要 > 数据派生计数(Jinja 三元与 or 的优先级易误读, 显式分行赋值避免歧义)> 空品牌通用引导 #} {% if tp_brand_summary %}{% set tp_brand_lead = tp_brand_summary %} {% elif related %}{% set tp_brand_lead = ('One product from ' if related|length == 1 else related|length ~ ' products from ') ~ page.title ~ ' — specifications and export documentation included.' %} {% else %}{% set tp_brand_lead = 'Products assigned to this brand in the admin console appear here automatically.' %}{% endif %}
{% if safe_image(page.cover) %}{% endif %}
BRAND PROFILE / PARTNERS

{{ page.title }}

{{ tp_brand_lead }}

{% if related %}View brand products {{ icon('arrow-right') }}{% endif %}
{% if related %}
PRODUCT LINE

{{ page.title }} products

All products {{ icon('arrow-right', cls='sf-tp-icon--sm') }}
{% for tp_item in related[:8] %} {% endfor %}
{% else %}

No products listed under this brand yet

Products assigned to this brand appear here automatically once published.

Browse all products {{ icon('arrow-right') }}
{% endif %} {% if content %}
BRAND PROFILE

About {{ page.title }}

{{ body_copy(content, page) }}
{% endif %}