{# app/modules/cms/templates/cms/storefront/landing-default.html #} {# Default/Minimal Landing Page Template #} {% extends "storefront/base.html" %} {% block title %}{{ store.name }}{% endblock %} {% block meta_description %}{{ page.meta_description or store.description or store.name if page else store.description or store.name }}{% endblock %} {% block content %}
{# Hero Section - Simple and Clean #}
{# Logo #} {% if theme.branding.logo %}
{{ store.name }}
{% endif %} {# Title #}

{{ page_title or store.name }}

{# Tagline #} {% if store.tagline %}

{{ store.tagline }}

{% endif %} {# CTA Buttons — driven by storefront_nav (module-agnostic) #} {% set nav_items = storefront_nav.get('nav', []) %}
{% if nav_items %} {# Primary CTA: first nav item from enabled modules #} {{ _(nav_items[0].label_key) }} {% else %} {# Fallback: account link when no module nav items #} {{ _('cms.storefront.my_account') }} {% endif %} {% if page and page.content %} {{ _('cms.storefront.learn_more') }} {% endif %}
{# Content Section (if provided) #} {% if page_content %}
{{ page_content | safe }}{# sanitized: CMS content #}
{% endif %} {# Quick Links Section — driven by nav items and CMS pages #} {% set account_items = storefront_nav.get('account', []) %} {% set all_links = nav_items + account_items %} {% if all_links or header_pages %}

{{ _('cms.storefront.explore') }}

{# Module nav items (products, loyalty, etc.) #} {% for item in all_links[:3] %}

{{ _(item.label_key) }}

{% endfor %} {# Fill remaining slots with CMS header pages #} {% set remaining = 3 - all_links[:3]|length %} {% if remaining > 0 and header_pages %} {% for page in header_pages[:remaining] %}

{{ page.title }}

{% if page.meta_description %}

{{ page.meta_description }}

{% endif %}
{% endfor %} {% endif %}
{% endif %}
{% endblock %}