{# ──────────────── HEADER ──────────────── #}
{{ resume.name[0] if resume.name else '?' }}

{{ resume.name }}

{% if story and story.hero_title %} {{ story.hero_title }} {% endif %}

{{ resume.title }}

{% if story and story.theme %}

"{{ story.theme }}"

{% endif %}
{# ──────────────── STORY OPENING ──────────────── #} {% if story and story.opening %}

{{ story.opening }}

{% endif %} {# ──────────────── KEY METRICS ──────────────── #}
{# Years of Experience #} {% set ns = namespace(min_year=9999, max_year=0) %} {% if resume.experience %} {% for exp in resume.experience %} {% if exp.period %} {% set parts = exp.period.split(' - ') if ' - ' in exp.period else exp.period.split('–') %} {% if parts|length >= 1 %} {% set start_str = parts[0]|trim %} {% for c in start_str %} {% if c in '0123456789' %} {% set ns.min_year = [ns.min_year, start_str[:4]|int]|min %} {% endif %} {% endfor %} {% endif %} {% if parts|length >= 2 %} {% set end_str = parts[-1]|trim %} {% if 'resent' in end_str or '至今' in end_str or '现在' in end_str %} {% set ns.max_year = 2025 %} {% else %} {% for c in end_str %} {% if c in '0123456789' %} {% set ns.max_year = [ns.max_year, end_str[:4]|int]|max %} {% endif %} {% endfor %} {% endif %} {% endif %} {% endif %} {% endfor %} {% endif %} {% set years = [ns.max_year - ns.min_year, 1]|max if ns.max_year > 0 else 1 %}

Years of Experience

{{ years }}+

{% if ns.min_year < 9999 and ns.max_year > 0 %} {{ ns.min_year }} – {{ ns.max_year if ns.max_year == 2025 else ns.max_year }} {% else %} Professional career {% endif %}

{# Companies #} {% set company_count = resume.experience|length if resume.experience else 0 %}

Companies

{{ company_count }}

Organizations

{# Projects #} {% set project_count = resume.projects|length if resume.projects else 0 %}

Projects

{{ project_count }}

Delivered

{# Skills #} {% set skill_count = resume.skills|length if resume.skills else 0 %}

Skills

{{ skill_count }}

Core competencies

{# ──────────────── CHARTS ROW ──────────────── #}
{# Radar Chart: Skills #}

Skills Radar

{# Career Timeline Chart #}

Career Progression

{# ──────────────── SKILLS AS STORY ──────────────── #} {% if story and story.skills_as_story %}

{{ story.skills_as_story }}

{% endif %} {# ──────────────── EXPERIENCE ──────────────── #} {% if resume.experience %}

Professional Experience

{% for exp in resume.experience %}

{{ exp.role }}

{% if exp.period %} {{ exp.period }} {% endif %}

{{ exp.company }}

{# Story timeline entry mapping #} {% if story and story.timeline %} {% for entry in story.timeline %} {% if entry.title == exp.company or entry.title == exp.role %} {% if entry.type == 'turning_point' %} Turning Point {% endif %} {% endif %} {% endfor %} {% endif %} {% if exp.highlights and exp.highlights|length > 0 %}

Click to {{ 'collapse' if loop.first else 'expand' }} details

{% endif %}
{% if exp.highlights or exp.tech_stack %}
{# Story narrative for this entry #} {% if story and story.timeline %} {% for entry in story.timeline %} {% if entry.title == exp.company or entry.title == exp.role %} {% if entry.scene %}

{{ entry.scene }}

{% endif %} {% if entry.narrative %}

{{ entry.narrative }}

{% endif %} {% if entry.inner_voice %}

"{{ entry.inner_voice }}"

{% endif %} {% if entry.highlight_quote %}

{{ entry.highlight_quote }}

{% endif %} {% endif %} {% endfor %} {% endif %} {% if exp.highlights %}

Key Highlights

{{ exp.highlights }}

{% endif %} {% if exp.tech_stack %}

Tech Stack

{% if exp.tech_stack is string %} {% for tech in exp.tech_stack.split(',') %} {{ tech|trim }} {% endfor %} {% elif exp.tech_stack is iterable %} {% for tech in exp.tech_stack %} {{ tech }} {% endfor %} {% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %} {# ──────────────── SKILLS SECTION ──────────────── #} {% if resume.skills %}

Core Skills

{% for skill in resume.skills %} {{ skill }} {% endfor %}
{% endif %} {# ──────────────── PROJECTS ──────────────── #} {% if resume.projects %}

Projects

{# Story projects as legend #} {% if story and story.projects_as_legend %}

{{ story.projects_as_legend }}

{% endif %}
{% for proj in resume.projects %}

{{ proj.name }}

{% if proj.url %} {% endif %}
{% if proj.role %}

{{ proj.role }}

{% endif %} {% if proj.description %}

{{ proj.description }}

{% endif %} {% if proj.tech_stack %}
{% if proj.tech_stack is string %} {% for tech in proj.tech_stack.split(',') %} {{ tech|trim }} {% endfor %} {% elif proj.tech_stack is iterable %} {% for tech in proj.tech_stack %} {{ tech }} {% endfor %} {% endif %}
{% endif %}
{% endfor %}
{% endif %} {# ──────────────── EDUCATION ──────────────── #} {% if resume.education %}

Education

{# Story education origin #} {% if story and story.education_origin %}

{{ story.education_origin }}

{% endif %}
{% for edu in resume.education %}

{{ edu.institution }}

{{ edu.degree }}

{% if edu.period %}

{{ edu.period }}

{% endif %} {% if edu.highlights %}

{{ edu.highlights }}

{% endif %}
{% endfor %}
{% endif %} {# ──────────────── LANGUAGES & CERTIFICATIONS ──────────────── #} {% if resume.languages or resume.certifications %}
{% if resume.languages %}

Languages

{% for lang in resume.languages %} {{ lang }} {% endfor %}
{% endif %} {% if resume.certifications %}

Certifications

    {% for cert in resume.certifications %}
  • {{ cert }}
  • {% endfor %}
{% endif %}
{% endif %} {# ──────────────── STORY TIMELINE (NARRATIVE) ──────────────── #} {% if story and story.timeline %}

Career Story

{% for entry in story.timeline %}
{{ entry.year }} {% if entry.type %} {{ entry.type|replace('_', ' ')|title }} {% endif %}

{{ entry.title }}

{% if entry.period %}

{{ entry.period }}

{% endif %} {% if entry.scene %}

{{ entry.scene }}

{% endif %} {% if entry.narrative %}

{{ entry.narrative }}

{% endif %} {% if entry.inner_voice %}

"{{ entry.inner_voice }}"

{% endif %} {% if entry.tech_weaved %}

{{ entry.tech_weaved }}

{% endif %} {% if entry.highlight_quote %}

"{{ entry.highlight_quote }}"

{% endif %}
{% endfor %}
{% endif %} {# ──────────────── CLOSING & SIGNATURE ──────────────── #} {% if story and (story.closing or story.signature_quote) %}
{% if story.closing %}

{{ story.closing }}

{% endif %} {% if story.signature_quote %}

"{{ story.signature_quote }}"

— {{ resume.name }}

{% endif %}
{% endif %}
{# ──────────────── FOOTER ──────────────── #} {# ──────────────── ECHARTS SCRIPTS ──────────────── #}