{# app/templates/storefront/content-page.html #} {# Generic CMS content page template #} {% extends "storefront/base.html" %} {# Dynamic title from CMS #} {% block title %}{{ page_title or page.title }}{% endblock %} {# SEO from CMS #} {% block meta_description %}{{ page.meta_description or page.title }}{% endblock %} {% block meta_keywords %}{{ page.meta_keywords or store.name }}{% endblock %} {% block content %}
{# Breadcrumbs #} {# Page Header #}

{{ page_title or page.title }}

{# Optional: Show store override badge for debugging #} {% if page.store_id %}
Custom {{ store.name }} version
{% endif %} {# Published date (optional) #} {% if page.published_at %}
Published {{ page.published_at.strftime('%B %d, %Y') }}
{% endif %}
{# Content — use page_content (with resolved placeholders) when available #} {% set content = page_content if page_content is defined and page_content else page.content %}
{% if page.content_format == 'markdown' %}
{{ content | safe }}{# sanitized: CMS content #}
{% else %} {{ content | safe }}{# sanitized: CMS content #} {% endif %}
{# Last updated timestamp #} {% if page.updated_at %}
Last updated: {{ page.updated_at.strftime('%B %d, %Y') }}
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}