{# ============================================================================= advanced/templates/page-builder.html โ€” Page Builder Demo Template ============================================================================= Renders nested frontmatter data from content/pages/process.md into structured page sections: - Hero section (from frontmatter.hero) - Card grid (from frontmatter.cards) - Tabbed process steps (from frontmatter.process_tabs) - Testimonials (from frontmatter.testimonials) This demonstrates the pattern of using frontmatter as structured page-builder data rather than just SEO metadata. ============================================================================= #} {% extends "layout/base.html" %} {% block content %} {# ================================================================== HERO SECTION โ€” from frontmatter.hero ================================================================== #} {% if hero %}

{{ hero.heading }}

{% if hero.subheading %}

{{ hero.subheading }}

{% endif %} {% if hero.cta_label %} {{ hero.cta_label }} {% endif %}
{% endif %} {# ================================================================== CARD GRID โ€” from frontmatter.cards ================================================================== #} {% if cards %}

How We Work

{% for card in cards %}
{{ card.icon | default('๐Ÿ“„') }}

{{ card.title }}

{{ card.body }}

{% endfor %}
{% endif %} {# ================================================================== PROCESS TABS โ€” from frontmatter.process_tabs ================================================================== #} {% if process_tabs %}

Our Process

{% for tab in process_tabs %}

{{ tab.label }}

{% if tab.steps %}
    {% for step in tab.steps %}
  1. {{ step.title }} {% if step.body %}: {{ step.body }}{% endif %}
  2. {% endfor %}
{% endif %}
{% endfor %}
{% endif %} {# ================================================================== TESTIMONIALS โ€” from frontmatter.testimonials ================================================================== #} {% if testimonials %}

What Clients Say

{% for testimonial in testimonials %}

{{ testimonial.quote }}

{% endfor %}
{% endif %} {# ================================================================== FALLBACK โ€” raw Markdown body if no structured data is present ================================================================== #} {% if not hero and not cards and not process_tabs and not testimonials %}
{{ content | safe }}
{% endif %} {% endblock %}