From 6aa01eae708d593127a55699495ec5a5d10d07c1 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Thu, 3 Oct 2019 16:36:34 +0200 Subject: [PATCH] add roles section --- i18n/en.yaml | 2 ++ i18n/fr.yaml | 2 ++ layouts/index.html | 4 ++++ layouts/partials/roles.html | 22 ++++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 layouts/partials/roles.html diff --git a/i18n/en.yaml b/i18n/en.yaml index 66007b5..a90e454 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -2,6 +2,8 @@ translation: Education - id: experiences translation: Experiences +- id: roles + translation: Consulting Projects - id: interests translation: Interests - id: language diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 76f1cde..469dc4a 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -2,6 +2,8 @@ translation: Études - id: experiences translation: Éxpériences professionnelles +- id: roles + translation: Missions de consulting - id: volunteering translation: Éxpériences bénévoles - id: interests diff --git a/layouts/index.html b/layouts/index.html index 14f3f63..4380a69 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,6 +19,10 @@ {{ partial "experiences.html" . }} {{ end }} + {{ if .Site.Params.roles.enable }} + {{ partial "roles.html" . }} + {{ end }} + {{ if .Site.Params.projects.enable }} {{ partial "projects.html" . }} {{ end }} diff --git a/layouts/partials/roles.html b/layouts/partials/roles.html new file mode 100644 index 0000000..ff335cc --- /dev/null +++ b/layouts/partials/roles.html @@ -0,0 +1,22 @@ +
+

{{ i18n "roles" }}

+
+

{{ with .Site.Params.roles.intro }}{{ . | markdownify }}{{ end }}

+
+ + {{ range .Site.Params.roles.list }} +
+
+
+

{{ .project }}

+
{{ .dates }}
+
+
{{ .company }}
+
+
+

{{ with .details }}{{ . | markdownify }}{{ end }}

+
+
+ {{ end }} + +