{% extends "base.html" %} {% set hero_title = get_page_text(page, "title", lang) if page and get_page_text(page, "title", lang) else "Quality Used Vehicles in Toronto" %} {% set hero_subtitle = get_page_text(page, "excerpt", lang) if page and get_page_text(page, "excerpt", lang) else "Browse our hand-picked inventory of certified and inspected used cars, trucks, and SUVs." %} {% set hero_bg = page.hero_image_path if page and page.hero_image_path else none %} {% block title %}{{ get_page_text(page, "seo_title", lang) if page else hero_title }} | {{ settings.company_name }}{% endblock %} {% block content %} {# ─────────────────── 1. HERO SECTION ─────────────────── #} {% if hero_bg %} {% endif %} {{ t("home_hero_eyebrow", lang) }} {{ hero_title }} {{ hero_subtitle }} {{ t("browse_inventory", lang) }} {{ t("contact_us", lang) }} {{ t("quick_search_by_category", lang) }} {% set quick_categories = [("Sedan","Sedans"),("SUV","SUVs"),("Truck","Trucks"),("Coupe","Coupes"),("Hatchback","Hatchbacks"),("Van","Vans"),("Convertible","Convertibles")] %} {% for cat_value, cat_label in quick_categories %} {{ cat_label }} {% endfor %} {% if featured_listings %} {{ t("featured_vehicles_label", lang) }} ‹ › {% for listing in featured_listings[:settings.featured_carousel_count|default(8)|int] %} {% include "partials/listing_card_compact.html" %} {% endfor %} {% endif %} {# ─────────────────── 2. TRUST STRIP ─────────────────── #} {# CARFAX reports #} {{ t("trust_carfax", lang) }} {# Safety inspected #} {{ t("trust_safety_inspected", lang) }} {# Financing #} {{ t("trust_financing", lang) }} {# Trade-ins #} {{ t("trust_trade_ins", lang) }} {# Canada-wide delivery #} {{ t("trust_canada_delivery", lang) }} {# ─────────────────── 4. SHOP BY BODY STYLE ─────────────────── #} {{ t("shop_by_body_style", lang) }} {{ t("find_your_perfect_vehicle", lang) }} {% for card in body_style_cards %} {% if card.image_path %} {% else %} {{ card.label_en }} {% endif %} {{ card.label_en }} {% endfor %} {# ─────────────────── 5. POPULAR MAKES ─────────────────── #} {{ t("popular_makes", lang) }} {{ t("browse_by_make", lang) }} {% for pm in popular_makes %} {% set color_pair = MAKE_COLORS[loop.index0 % MAKE_COLORS|length] %} {% if pm.image_path %} {% else %} {{ pm.key[0] }} {% endif %} {{ pm.label }} {{ pm.count }} in stock {% endfor %} {# ─────────────────── 6. RECENT ARRIVALS ─────────────────── #} {% if recent_listings %} {{ t("recently_added_label", lang) }} {{ t("recently_added_heading", lang) }} {{ t("view_all_inventory", lang) }} {% for listing in recent_listings[:6] %} {% include "partials/listing_card.html" %} {% endfor %} {% endif %} {# ─────────────────── 7. CMS CONTENT ─────────────────── #} {% if page and get_page_text(page, 'content_html', lang) %} {{ get_page_text(page, 'content_html', lang)|safe }} {% endif %} {% endblock %}
{{ t("home_hero_eyebrow", lang) }}
{{ hero_subtitle }}
{{ t("quick_search_by_category", lang) }}
{{ t("featured_vehicles_label", lang) }}
{{ t("shop_by_body_style", lang) }}
{{ t("popular_makes", lang) }}
{{ t("recently_added_label", lang) }}