diff options
Diffstat (limited to 'layouts/partials/experience.html')
-rw-r--r-- | layouts/partials/experience.html | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/layouts/partials/experience.html b/layouts/partials/experience.html index 8db7e59..7db932d 100644 --- a/layouts/partials/experience.html +++ b/layouts/partials/experience.html @@ -1,25 +1,17 @@ <div class="section"> <h1 class="section-title">{{ .Site.Params.title_as.experience }}</h1> - {{ $companies := slice }} {{ range .Site.Data.experience }} - {{ $companies = $companies | append .company }} -{{ end }} - -{{ $companies = uniq $companies }} - -{{ range $companies }} - {{ $company := . }} - <div class="item group"> - <h3 class="item-title">{{ $company }}</h3> - {{ range where $.Site.Data.experience "company" $company }} - <div class="item"> - <div class="flex-row"> - <span class="job-title">{{ .name }}</span> - <span class="date">{{ .date }}</span></div> + <h3 class="item-title">{{ .company }}</h3> + {{ range .roles }} + <div class="item"> + <div class="flex-row"> + <span class="job-title">{{ .role }}</span> + <span class="date">{{ .date }}</span> + </div> <p>{{ .details | markdownify }}</p> - </div> - {{ end }} + </div> + {{ end }} </div> -{{ end }} + {{ end }} </div>
\ No newline at end of file |