{% extends "base.html" %} {% from 'partials/theme-primitives.html' import theme_page_header, theme_surface, theme_link_card %} {% block content %} {% let page_title = page?.title ?? config?.title ?? 'Home' %} {% let page_desc = params?.description ?? '' %} {% let cta_buttons = params?.cta_buttons ?? [] %} {% let quick_links = params?.quick_links ?? [] %} {% let features = params?.features ?? [] %}
{% call theme_surface('chirp-theme-home__hero') %}
{% call theme_page_header(page_title, page_desc, 'Bengal theme ยท chirp-ui aesthetic', cls='chirp-theme-home__header') %} {% slot actions %} {% if cta_buttons | length > 0 %}
{% for button in cta_buttons %} {% let btn_url = button?.href ?? button?.url ?? '#' %} {% let btn_text = button?.text ?? 'Learn more' %} {% let btn_style = button?.style ?? 'primary' %} {{ btn_text }} {% end %}
{% end %} {% end %} {% end %}
{% end %} {% if features | length > 0 %}
{% for feature in features %} {{ theme_link_card( feature?.href ?? feature?.url ?? '#', feature?.title ?? 'Feature', feature?.description ?? '', cls='chirp-theme-home__card' ) }} {% end %}
{% end %} {% if quick_links | length > 0 %} {% end %} {% if content and content.strip() %}
{{ content | safe }}
{% end %}
{% end %}