{{ define "component-avatar" }} {{ end }} {{ define "component-basic-info" }}

{{.Name}}

{{.Title}}

{{ if .Email }}{{ end }} {{ if .Phone }}
{{.Phone}}
{{ end }} {{ if .Location }}
{{.Location}}
{{ end }} {{ if .Website }}{{ end }}
{{ if .ExperienceYears }}
{{.ExperienceYears}}
{{ end }} {{ if .JobTarget }}
{{.JobTarget}}
{{ end }} {{ if .Industry }}
{{.Industry}}
{{ end }}
{{ if .Summary }}
{{.Summary}}
{{ end }}
{{ end }} {{ define "section-core-advantages" }} {{ if .BasicInfo.CoreAdvantages }}

核心优势

{{ end }} {{ end }} {{ define "section-experience" }} {{ if .Experience }}

工作经验

{{ range .Experience }}
{{.Company}} {{.StartDate}} - {{.EndDate}}
{{.Position}}
{{ if .Platforms }}
{{ range .Platforms }} {{.}} {{ end }}
{{ end }} {{ if .Description }}
{{.Description}}
{{ end }} {{ if .Highlights }}
    {{ range .Highlights }}
  • {{.}}
  • {{ end }}
{{ end }}
{{ end }}
{{ end }} {{ end }} {{ define "section-education" }} {{ if .Education }}

教育背景

{{ range .Education }}
{{.School}} {{.StartDate}} - {{.EndDate}}
{{.Degree}} - {{.Major}}
{{ if .GPA }}
GPA: {{.GPA}}
{{ end }}
{{ end }}
{{ end }} {{ end }} {{ define "section-skills" }} {{ if .Skills }}

技术栈

{{ $categories := dict }} {{ range .Skills }} {{ $cat := .Category }} {{ if not (index $categories $cat) }} {{ $_ := set $categories $cat slice }} {{ end }} {{ $categories = merge $categories (dict $cat (append (index $categories $cat) .)) }} {{ end }}
{{ range $cat, $skills := $categories }}
{{ $cat }}
{{ range $skills }} {{ .Name }} {{ end }}
{{ end }}
{{ end }} {{ end }} {{ define "section-skills-progress" }} {{ if .Skills }}

技术栈

{{ $levelMap := dict "beginner" "25%" "intermediate" "50%" "advanced" "75%" "expert" "100%" }} {{ $levelText := dict "beginner" "入门" "intermediate" "中级" "advanced" "高级" "expert" "专家" }} {{ $categories := dict }} {{ range .Skills }} {{ $cat := .Category }} {{ if not (index $categories $cat) }} {{ $_ := set $categories $cat slice }} {{ end }} {{ $categories = merge $categories (dict $cat (append (index $categories $cat) .)) }} {{ end }}
{{ range $cat, $skills := $categories }}
{{ $cat }}
{{ range $skills }} {{ $width := index $levelMap .Level }} {{ if not $width }}{{ $width = "50%" }}{{ end }} {{ $text := index $levelText .Level }} {{ if not $text }}{{ $text = .Level }}{{ end }}
{{ .Name }} {{ $text }}
{{ end }}
{{ end }}
{{ end }} {{ end }} {{ define "section-projects" }} {{ if .Projects }}

项目经验

查看作品集
{{ range $index, $project := .Projects }}
{{$project.Name}} {{$project.StartDate}} - {{$project.EndDate}}
{{ if $project.URL }} 查看项目 {{ end }} {{ if $project.Description }}
{{$project.Description}}
{{ end }} {{ if $project.TechStack }}
{{ range $project.TechStack }} {{.}} {{ end }}
{{ end }} {{ if $project.Highlights }}
    {{ range $project.Highlights }}
  • {{.}}
  • {{ end }}
{{ end }} {{ if $project.Achievements }}

项目成果

    {{ range $project.Achievements }}
  • {{.}}
  • {{ end }}
{{ end }}
{{ end }}
{{ end }} {{ end }} {{ define "section-summary" }} {{ if .BasicInfo.Summary }}

个人简介

{{ end }} {{ end }} {{ define "theme-switch" }}
{{ end }} {{ define "theme-script" }} {{ end }}