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 d8892de..c4e1a92 100644 --- a/layouts/partials/experiences/experience-info.html +++ b/layouts/partials/experiences/experience-info.html @@ -1,5 +1,5 @@ -{{ if .positions }} +{{ if gt (len .positions) 1 }} {{ partial "experiences/multiple-positions" . }} {{ else }} - {{ partial "experiences/one-position.html" . }} -{{ end }} \ No newline at end of file + {{ partial "experiences/single-position.html" . }} +{{ end }} diff --git a/layouts/partials/experiences/multiple-positions.html b/layouts/partials/experiences/multiple-positions.html index 6ed607c..aae5f3d 100644 --- a/layouts/partials/experiences/multiple-positions.html +++ b/layouts/partials/experiences/multiple-positions.html @@ -1,23 +1,29 @@
-
{{ if .company.url }} {{end }} {{ .company.name }}
+ +
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
+ + {{ $oldestPosition := index (last 1 .positions) 0}} {{ $mostRecentPosition := index (first 1 .positions) 0}} -
{{ .designation }}
-

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

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

+ +

{{ .company.overview | markdownify }}

-

{{ .company.overview | markdownify }}

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

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

+ -
+ {{ range $position.responsibilities }} +
  • {{ . | markdownify }}
  • {{ end }} -
    \ No newline at end of file + + {{ end }} +
    + diff --git a/layouts/partials/experiences/one-position.html b/layouts/partials/experiences/one-position.html deleted file mode 100644 index c743f3a..0000000 --- a/layouts/partials/experiences/one-position.html +++ /dev/null @@ -1,17 +0,0 @@ -
    -
    -
    {{ .designation }}
    -
    {{ if .company.url }} {{end }} {{ .company.name }}
    - -

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

    -
    -

    {{ .company.overview | markdownify }}

    -
    Responsibilities:
    - -
    \ No newline at end of file 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 +}