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

{{ page.title }}

{# Optional: Show vendor override badge for debugging #} {% if page.vendor_id %}
Custom {{ vendor.name }} version
{% endif %} {# Published date (optional) #} {% if page.published_at %}
Published {{ page.published_at.strftime('%B %d, %Y') }}
{% endif %}
{# Content #}
{% if page.content_format == 'markdown' %} {# Markdown content - future enhancement: render with markdown library #}
{{ page.content | safe }}
{% else %} {# HTML content (default) #} {{ page.content | safe }} {% endif %}
{# Last updated timestamp #} {% if page.updated_at %}
Last updated: {{ page.updated_at.strftime('%B %d, %Y') }}
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}