{% comment %} 用法: {% include "includes/carousel.html" with carousel_id="mainBanner" slides=carousel_data height="500px" show_caption=True %} 参数说明: - carousel_id: 唯一ID,用于区分页面上的多个轮播图 (必填) - slides: 列表,包含字典 {'image_url': '...', 'title': '...', 'description': '...'} (必填) - height: 轮播图高度,默认 400px (可选) - show_caption: 是否显示文字描述,默认 True (可选) - object_fit: 图片填充模式,默认 'cover' (可选: cover, contain, fill) {% endcomment %} {% load static %}