{# app/templates/platform/content-page.html #} {# Generic template for platform content pages (About, FAQ, Terms, Contact, etc.) #} {% extends "platform/base.html" %} {% set _lang = current_language|default('fr') %} {% set _page_title = page.get_translated_title(_lang) %} {% set _page_content = page.get_translated_content(_lang) %} {% block title %}{{ _page_title }} - Marketplace{% endblock %} {% block meta_description %} {% if page.meta_description %} {{ page.meta_description }} {% else %} {{ _page_title }} - Multi-Store Marketplace Platform {% endif %} {% endblock %} {% block meta_keywords %} {% if page.meta_keywords %} {{ page.meta_keywords }} {% else %} {{ _page_title }}, marketplace, platform {% endif %} {% endblock %} {% block content %}
{# Breadcrumbs #} {# Page Header #}

{{ _page_title }}

{# Published date (if available) #} {% if page.published_at %}
{{ _("cms.platform.content_page.published") }} {{ page.published_at.strftime('%B %d, %Y') }}
{% endif %}
{# Page Content #}
{% if page.content_format == 'markdown' %} {# Future enhancement: Render with markdown library #}
{{ _page_content | safe }}{# sanitized: CMS content #}
{% else %} {# HTML content (default) #} {{ _page_content | safe }}{# sanitized: CMS content #} {% endif %}
{# Last updated timestamp #} {% if page.updated_at %}

{{ _("cms.platform.content_page.last_updated") }} {{ page.updated_at.strftime('%B %d, %Y') }}

{% endif %} {# Call-to-action section (for specific pages) #} {% if page.slug in ['about', 'contact'] %}

{% if page.slug == 'about' %} {{ _("cms.platform.content_page.cta_about_title") }} {% elif page.slug == 'contact' %} {{ _("cms.platform.content_page.cta_contact_title") }} {% endif %}

{% if page.slug == 'about' %} {{ _("cms.platform.content_page.cta_about_subtitle") }} {% elif page.slug == 'contact' %} {{ _("cms.platform.content_page.cta_contact_subtitle") }} {% endif %}

{% if page.slug == 'about' %} {{ _("cms.platform.content_page.cta_about_button") }} {% elif page.slug == 'contact' %} {{ _("cms.platform.content_page.cta_contact_button") }} {% endif %}
{% endif %}
{# Additional styling for prose content #} {% endblock %}