Path: templates/home.jinja
Purpose: Renders the store’s homepage with hero banners, featured products, and promotional sections.
Fallback: If missing, Zid’s default homepage is used.
Usage#
Always extend the base layout:Use platform macros for UI consistency:
Context Variables#
store
— store details (branding, name, domain)
settings
— theme + store settings (colors, toggles)
featured_products
— array of product objects
hero_banner
— hero image, title, link
Example#
Key Notes#
Pull colors, fonts, and text from settings
— never hardcode.
Handle empty arrays gracefully (skip or show “No products yet”).
Preload hero image for better Largest Contentful Paint (LCP).
Modified at 2025-08-17 10:47:33