From caadf1948fbd847790d0e4c9b8d6e30e0e7b60ea Mon Sep 17 00:00:00 2001 From: mertbakir <2335694-mertbakir@users.noreply.gitlab.com> Date: Sat, 13 Feb 2021 02:17:14 +0300 Subject: [PATCH] Update experience layout and yaml structure. --- exampleSite/data/experience.yaml | 37 +++++++++++++++++++------------- layouts/partials/experience.html | 28 +++++++++--------------- 2 files changed, 32 insertions(+), 33 deletions(-) diff --git a/exampleSite/data/experience.yaml b/exampleSite/data/experience.yaml index 69e54ff..add91f3 100644 --- a/exampleSite/data/experience.yaml +++ b/exampleSite/data/experience.yaml @@ -1,20 +1,27 @@ -- name: "CEO" - company: "Google" - details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. +- company: Uber + roles: + - role: Data Scientist + details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. Aenean nec volutpat arcu. Maecenas quis tempus risus. Curabitur condimentum ligula in erat pharetra porta. Nam suscipit nisi a bibendum lacinia. Donec aliquet, nibh dignissim placerat efficit" - date: "2019 - Present" + date: "10.2020 - Present" -- name: "Junior Software Developer" - company: "Google" - date: "10.2018 - Present" - details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. +- company: Google + roles: + - role: Senior Software Developer + details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. + Aenean nec volutpat arcu. Maecenas quis tempus risus. " + date: "06.2019 - 10.2020" + + - role: Junior Software Developer + date: "10.2018 - 06.2019" + details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. + Aenean nec volutpat arcu. Maecenas quis tempus risus. " + +- company: Uber + roles: + - role: Driver + details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. Aenean nec volutpat arcu. Maecenas quis tempus risus. Curabitur condimentum ligula in erat pharetra porta. Nam suscipit nisi a bibendum lacinia. Donec aliquet, nibh dignissim placerat efficit" - -- name: "CTO" - company: "Uber" - date: "11.2016 - 07.2017" - details: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ornare sollicitudin fringilla. - Aenean nec volutpat arcu. Maecenas quis tempus risus. Curabitur condimentum ligula in erat pharetra porta. - Nam suscipit nisi a bibendum lacinia. Donec aliquet, nibh dignissim placerat efficit" \ No newline at end of file + date: "2017 - 2018" \ No newline at end of file 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 @@

{{ .Site.Params.title_as.experience }}

- {{ $companies := slice }} {{ range .Site.Data.experience }} - {{ $companies = $companies | append .company }} -{{ end }} - -{{ $companies = uniq $companies }} - -{{ range $companies }} - {{ $company := . }} -
-

{{ $company }}

- {{ range where $.Site.Data.experience "company" $company }} -
-
- {{ .name }} - {{ .date }}
+

{{ .company }}

+ {{ range .roles }} +
+
+ {{ .role }} + {{ .date }} +

{{ .details | markdownify }}

-
- {{ end }} +
+ {{ end }}
-{{ end }} + {{ end }}
\ No newline at end of file