diff options
author | mertbakir <2335694-mertbakir@users.noreply.gitlab.com> | 2021-02-13 02:17:14 +0300 |
---|---|---|
committer | mertbakir <mertbakxr@gmail.com> | 2021-02-13 02:17:14 +0300 |
commit | caadf1948fbd847790d0e4c9b8d6e30e0e7b60ea (patch) | |
tree | 521bbec5789991733b79a69f37fdd8f94143eb66 /layouts | |
parent | 1270bc2b0152349b600fb7e204b566ce120e7ea1 (diff) |
Update experience layout and yaml structure.
Diffstat (limited to 'layouts')
-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 |