From f065c81cb58bf920bb31101f767391e43cae1cba Mon Sep 17 00:00:00 2001 From: Pau Trepat Segura Date: Sun, 21 Jun 2020 20:01:14 +0200 Subject: [PATCH] Split experiences into single project or multiproject The idea is try to follow the Linkedin approach for one vs multiple projects visualisation. Also removed the link from company to avoid useless clickout --- .../partials/experiences/experience-info.html | 20 ++++++------------- .../experiences/info/multiple-projects.html | 14 +++++++++++++ .../experiences/info/one-project.html | 14 +++++++++++++ 3 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 layouts/partials/experiences/info/multiple-projects.html create mode 100644 layouts/partials/experiences/info/one-project.html diff --git a/layouts/partials/experiences/experience-info.html b/layouts/partials/experiences/experience-info.html index 32df172..26af6fc 100644 --- a/layouts/partials/experiences/experience-info.html +++ b/layouts/partials/experiences/experience-info.html @@ -1,14 +1,6 @@ -
-
-
{{ .designation }}
-
{{ .company.name }}
-

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

-
-

{{ .company.overview | markdownify }}

-
Responsibilities:
- -
+{{ if .projects }} + {{ partial "experiences/info/multiple-projects.html" . }} +{{ else }} + {{ partial "experiences/info/one-project.html" . }} +{{ end }} + diff --git a/layouts/partials/experiences/info/multiple-projects.html b/layouts/partials/experiences/info/multiple-projects.html new file mode 100644 index 0000000..0a2d832 --- /dev/null +++ b/layouts/partials/experiences/info/multiple-projects.html @@ -0,0 +1,14 @@ +
+
+
{{ .company.name }}
+
{{ .designation }}
+

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

+
+

{{ .company.overview | markdownify }}

+
Responsibilities:
+ +
diff --git a/layouts/partials/experiences/info/one-project.html b/layouts/partials/experiences/info/one-project.html new file mode 100644 index 0000000..cf2c3bf --- /dev/null +++ b/layouts/partials/experiences/info/one-project.html @@ -0,0 +1,14 @@ +
+
+
{{ .company.name }}
+
{{ if .designation }} {{ .designation }} {{end}}
+

{{ .start }} - {{ .end }} , {{ .company.location }}

+
+

{{ .company.overview | markdownify }}

+
Responsibilities:
+ +