diff --git a/exampleSite/data/sections/experiences.yaml b/exampleSite/data/sections/experiences.yaml index b5366d6..fb99079 100644 --- a/exampleSite/data/sections/experiences.yaml +++ b/exampleSite/data/sections/experiences.yaml @@ -9,44 +9,55 @@ section: # Your experiences experiences: -- designation: Software Engineer - company: +- company: name: Example Co. url: "https://www.example.com" location: Dhaka Branch # company overview overview: Example Co. is a widely recognized company for cloud-native development. It builds tools for Kubernetes. - start: Nov 2017 - # don't provide end date if you are currently working there. It will be replaced by "Present" - # end: Dec 2020 - # give some points about what was your responsibilities at the company. - responsibilities: - - Design, develop and manage disaster recovery tool [Xtool](https://www.example.com) that backup Kubernetes volumes, databases, and cluster's resource definition. - - My another responsibility. - - My more responsibilities. + positions: + - designation: Senior Software Engineer + start: Nov 2019 + # don't provide end date if you are currently working there. It will be replaced by "Present" + # end: Dec 2020 + # give some points about what was your responsibilities at the company. + responsibilities: + - Design and develop XYZ tool for ABC task + - Design, develop and manage disaster recovery tool [Xtool](https://www.example.com) that backup Kubernetes volumes, databases, and cluster's resource definition. + - Lead backend team. -- designation: Software Engineer - company: + - designation: Junior Software Engineer + start: Nov 2017 + end: Oct 2019 + responsibilities: + - Implement and test xyz feature for abc tool. + - Support client for abc tool. + - Learn k,d,w technology for xyz. + +- company: name: PreExample Co. url: "https://www.preexample.com" location: Nowhere overview: PreExample Co. is a gateway company to enter into Example co. So, nothing special here. - start: March 2016 - end: May 2017 - responsibilities: - - Write lots of example codes. - - Read lots of examples. - - See lots of example videos. + positions: + - designation: Software Engineer + start: March 2016 + end: May 2017 + responsibilities: + - Write lots of example codes. + - Read lots of examples. + - See lots of example videos. -- designation: Intern - company: +- company: name: Intern Counting Company (ICC). url: "https://www.intern.com" location: Intern Land overview: Intern counting Company (ICC) is responsible for counting worldwide intern Engineers. - start: Jun 2015 - end: Jan 2016 - responsibilities: - - Count lost of interns. - - Count more interns. - - Count me as an intern. + positions: + - designation: Intern + start: Jun 2015 + end: Jan 2016 + responsibilities: + - Count lost of interns. + - Count more interns. + - Count me as an intern. diff --git a/exampleSite/data/sections/recent-posts.yaml b/exampleSite/data/sections/recent-posts.yaml index 357e99f..77b8776 100644 --- a/exampleSite/data/sections/recent-posts.yaml +++ b/exampleSite/data/sections/recent-posts.yaml @@ -7,4 +7,4 @@ section: # Can optionally hide the title in sections # hideTitle: true -# no other configuration is required +# no additional configuration is required diff --git a/layouts/partials/experiences/experience-info.html b/layouts/partials/experiences/experience-info.html index b2d1ea8..c4e1a92 100644 --- a/layouts/partials/experiences/experience-info.html +++ b/layouts/partials/experiences/experience-info.html @@ -1,14 +1,5 @@ -
-
-
{{ .company.name }}
-
{{ .designation }}
-

{{ .start }} - {{ if .end }} {{ .end }} {{ else }}Present{{ end }}, {{ .company.location }}

-
-

{{ .company.overview | markdownify }}

-
Responsibilities:
- -
+{{ if gt (len .positions) 1 }} + {{ partial "experiences/multiple-positions" . }} +{{ else }} + {{ partial "experiences/single-position.html" . }} +{{ end }} diff --git a/layouts/partials/experiences/multiple-positions.html b/layouts/partials/experiences/multiple-positions.html new file mode 100644 index 0000000..aae5f3d --- /dev/null +++ b/layouts/partials/experiences/multiple-positions.html @@ -0,0 +1,29 @@ +
+
+ +
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
+ + + {{ $oldestPosition := index (last 1 .positions) 0}} + {{ $mostRecentPosition := index (first 1 .positions) 0}} +

+ {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}Present{{ end }}, + {{ .company.location }} +

+ +

{{ .company.overview | markdownify }}

+
+ +
+ {{ range $index,$position:= .positions }} +
{{ $position.designation }}
+

{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} Present {{end}}

+ + + {{ end }} +
+
diff --git a/layouts/partials/experiences/single-position.html b/layouts/partials/experiences/single-position.html new file mode 100644 index 0000000..f78d45e --- /dev/null +++ b/layouts/partials/experiences/single-position.html @@ -0,0 +1,21 @@ +
+
+ {{ $position:= index .positions 0 }} + +
{{ $position.designation }}
+
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
+ +

{{ $position.start }} - {{ if $position.end }} {{ $position.end }} {{ else }}Present{{ end }}, + {{ .company.location }} +

+
+ +

{{ .company.overview | markdownify }}

+ +
Responsibilities:
+ +
diff --git a/static/assets/css/experiences.css b/static/assets/css/experiences.css index bb2f794..977a28e 100644 --- a/static/assets/css/experiences.css +++ b/static/assets/css/experiences.css @@ -1,20 +1,24 @@ -#experiences { +.experiences-section { padding-bottom: 1rem; } -#experiences .timeline { +.experiences-section .timeline { margin-top: 1.5rem !important; } -#experiences ul { +.experiences-section ul { padding-left: 1rem; } -#experiences ul > li { +.experiences-section ul > li { margin-left: 0; color: #3c4858; } +.experiences-section .designation{ + font-weight: 600; +} + .circle { padding: 13px 20px; border-radius: 50%; @@ -152,4 +156,4 @@ left: 64%; top: -50%; } -} \ No newline at end of file +}