From 58196b2d8dd33fbb17caf56e557533e08e1cf135 Mon Sep 17 00:00:00 2001 From: BernatBC Date: Fri, 9 Feb 2024 21:53:28 +0100 Subject: [PATCH] Remove single-position layout --- layouts/partials/sections/experiences.html | 4 +- .../sections/experiences/experience-info.html | 5 --- ...multiple-positions.html => positions.html} | 0 .../sections/experiences/single-position.html | 39 ------------------- 4 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 layouts/partials/sections/experiences/experience-info.html rename layouts/partials/sections/experiences/{multiple-positions.html => positions.html} (100%) delete mode 100644 layouts/partials/sections/experiences/single-position.html diff --git a/layouts/partials/sections/experiences.html b/layouts/partials/sections/experiences.html index eafe926..b1cd34f 100644 --- a/layouts/partials/sections/experiences.html +++ b/layouts/partials/sections/experiences.html @@ -18,11 +18,11 @@ {{ if eq (mod $index 2) 0 }}
{{ partial "sections/experiences/vertical-line.html" $index }} - {{ partial "sections/experiences/experience-info.html" $experience }} + {{ partial "sections/experiences/positions.html" $experience }}
{{else}}
- {{ partial "sections/experiences/experience-info.html" $experience }} + {{ partial "sections/experiences/positions.html" $experience }} {{ partial "sections/experiences/vertical-line.html" $index }}
{{ end }} diff --git a/layouts/partials/sections/experiences/experience-info.html b/layouts/partials/sections/experiences/experience-info.html deleted file mode 100644 index 1d068a9..0000000 --- a/layouts/partials/sections/experiences/experience-info.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ if gt (len .positions) 1 }} - {{ partial "sections/experiences/multiple-positions.html" . }} -{{ else }} - {{ partial "sections/experiences/single-position.html" . }} -{{ end }} diff --git a/layouts/partials/sections/experiences/multiple-positions.html b/layouts/partials/sections/experiences/positions.html similarity index 100% rename from layouts/partials/sections/experiences/multiple-positions.html rename to layouts/partials/sections/experiences/positions.html diff --git a/layouts/partials/sections/experiences/single-position.html b/layouts/partials/sections/experiences/single-position.html deleted file mode 100644 index 25ac983..0000000 --- a/layouts/partials/sections/experiences/single-position.html +++ /dev/null @@ -1,39 +0,0 @@ -
-
- {{ $logoImage:= resources.Get .company.logo}} - {{ if $logoImage }} - {{/* svg don't support "Fit" operation */}} - {{ if ne $logoImage.MediaType.SubType "svg" }} - {{ $logoImage = $logoImage.Fit "300x300" }} - {{ end }} -
- -
- {{ end }} - {{ $position:= index .positions 0 }} -
-
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
-

{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }} -

-
-

- {{ .company.location }} -

- -

{{ .company.overview | markdownify }}

- -
-
{{ $position.designation }}
-

{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} {{ i18n "present" }} {{end}}

-
-
- - {{ if $position.responsibilities }} -
{{ i18n "responsibilities" }}
- - {{ end }} -