From f03e94e5d465630fed610447fc2327fec31c74e1 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Mon, 6 Jul 2020 18:11:04 +0200 Subject: [PATCH 1/3] Sections anchors added (#30) - Added anchors to sub-sections, to change coursor to hand - To-Do - open this section(anchor) on link shared(openned) --- layouts/partials/sections.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/sections.html b/layouts/partials/sections.html index d847fb5..09c9ab8 100644 --- a/layouts/partials/sections.html +++ b/layouts/partials/sections.html @@ -1,11 +1,11 @@ {{ range . }} {{ if .Sections }} -
  • {{ title .Title }} +
  • {{ title .Title }}
  • {{ else }} -
  • {{ title .Title }}
  • +
  • {{ title .Title }}
  • {{ end }} {{ end }} From 440f424e44787d1d1bb765e35384968e2415aa5f Mon Sep 17 00:00:00 2001 From: Pau Trepat Segura Date: Mon, 6 Jul 2020 20:02:54 +0200 Subject: [PATCH 2/3] Allow multiple position in one company experience (#9) * Add partials for multiple positions on one company * Remove unnecessary codes + Fix CSS Co-authored-by: hossainemruz --- exampleSite/data/sections/experiences.yaml | 63 +++++++++++-------- exampleSite/data/sections/recent-posts.yaml | 2 +- .../partials/experiences/experience-info.html | 19 ++---- .../experiences/multiple-positions.html | 29 +++++++++ .../partials/experiences/single-position.html | 21 +++++++ static/assets/css/experiences.css | 14 +++-- 6 files changed, 102 insertions(+), 46 deletions(-) create mode 100644 layouts/partials/experiences/multiple-positions.html create mode 100644 layouts/partials/experiences/single-position.html 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:
    -
      - {{ range .responsibilities }} -
    • {{ . | markdownify }}
    • - {{ end }} -
    -
    +{{ 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}}

    + +
      + {{ range $position.responsibilities }} +
    • {{ . | markdownify }}
    • + {{ 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:
    +
      + {{ range $position.responsibilities }} +
    • {{ . | markdownify }}
    • + {{ end }} +
    +
    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 +} From 08420ca095e5ea3dbb1b94ddd4030e6d7941b46b Mon Sep 17 00:00:00 2001 From: "Md. Emruz Hossain" Date: Thu, 9 Jul 2020 22:35:36 +0600 Subject: [PATCH 3/3] Fix spacing before comma (#37) --- layouts/partials/experiences/single-position.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/experiences/single-position.html b/layouts/partials/experiences/single-position.html index f78d45e..dda35ef 100644 --- a/layouts/partials/experiences/single-position.html +++ b/layouts/partials/experiences/single-position.html @@ -5,7 +5,7 @@
    {{ $position.designation }}
    {{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
    -

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

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