{% extends "main.html" %} {#- Home page renderer — content/presentation split. ALL copy lives in the page frontmatter (docs/index.md / docs/index.zh.md, key `home:`), one block per locale; this template is a pure rendering engine. Section schema: hero: {badge, title(html), subtitle, install, primary:{label,ref}, secondary:{label,url}} sections: list of cards: {title, subtitle?, lead(html)?, command?, muted?, two?, cards:[{icon, title, text(html), bullets?:[{text(html)}|{label,ref}], link?:{label,ref}, chip?}]} comparison: {title, subtitle?, muted?, stack?, bad:{title, code}, good:{title, code}, deliveries?:[{icon, title, text, code}]} integrations:{title, subtitle?, badges:[{icon, label, ref}]} cta: {title, subtitle, primary:{label,ref}, secondary:{label,url}} `ref` values are docs page refs passed through the `url` filter; `url` values are absolute links. HTML is allowed in text/lead/title fields. -#} {% macro feature_card(c) %}
{{ c.text }}{% if c.link %} {{ c.link.label }}{% endif %}
{% if c.bullets %}{{ s.subtitle }}
{% endif %}{{ s.lead }}
{% endif %} {% if s.command %}{{ s.command }}
{{ p.code }}
{{ d.text }}
{{ d.code }}
{{ home.hero.subtitle }}
{{ home.hero.install }}
home: block to this page's frontmatter.