{%- macro slide(image, title, subtitle, action, label, index, align="Left", theme="Dark") -%} {%- set align_class = resolve_class({ 'text-right': align == 'Right', 'text-centre': align == 'Centre', 'text-left': align == 'Left', }) -%} {%- set heading_class = resolve_class({ 'text-white': theme == 'Dark', '': theme == 'Light', }) -%} {%- endmacro -%} {%- set hero_slider_id = 'id-' + frappe.utils.generate_hash('HeroSlider', 12) -%}