diff --git a/exampleSite/data/de/content.yaml b/exampleSite/data/de/content.yaml new file mode 100644 index 0000000..72d54c1 --- /dev/null +++ b/exampleSite/data/de/content.yaml @@ -0,0 +1,116 @@ +BasicInfo: + FirstName: InĂªs + LastName: Almeida + Photo: img/avatar.jpg + Contacts: + - Icon: fas fa-phone + Info: +44 123 456 789 + - Icon: fas fa-envelope + Info: contact@ines-almeida.com + - Icon: fas fa-globe + Info: ines-almeida.com + - Icon: fas fa-map-marker-alt + Info: Portugal + +Profile: Deutscher Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. + +Experience: + - Employer: Super Coole Firma + Place: Oxford, UK + Positions: + - Title: Software Entwicklerin + Date: Jan 2020 - Jetzt + Details: + - Arcu vitae elementum curabitur vitae nunc sed velit + - Viverra aliquet eget sit amet tellus cras adipiscing + - Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat + - Nisl tincidunt eget nullam non nisi est + - Sed viverra tellus in hac. + - Lorem ipsum dolor sit amet, consectetur adipiscing elit + Badges: ['Python', 'Django', 'OOP', 'Javascript', 'HTML', 'CSS', 'Agile'] + - Title: Software Testerin + Date: Mar 2019 - Jan 2020 + Details: + - Nisl tincidunt eget nullam non nisi est + - Sed viverra tellus in hac. + - Lorem ipsum dolor sit amet, consectetur adipiscing elit + Badges: ['Python', 'BDD', 'Selenium', 'OOP', 'Agile'] + - Employer: Eine andere Supertolle Firma + Place: Lisbon, PT + Positions: + - Title: Flow Cytometry Resource Specialist + Date: Jan 2018 - Mar 2019 + Details: + - Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat + - Nisl tincidunt eget nullam non nisi est + - Sed viverra tellus in hac. + - Lorem ipsum dolor sit amet, consectetur adipiscing elit + Badges: ['Python', 'HTML', 'CSS', 'C#/Unity'] + - Employer: Institute of Neural Engineering + Place: Graz, AT + Positions: + - Title: Master's Thesis Research Intern + Date: Oct 2016 - Jun 2017 + Details: + - Arcu vitae elementum curabitur vitae nunc sed velit + - Viverra aliquet eget sit amet tellus cras adipiscing + - Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat + - Nisl tincidunt eget nullam non nisi est + Badges: ['Python', 'MATLAB', 'Data Processing', 'Paradigm Design'] + +Education: + - Course: BSc & MSc in Biomedical Engineering and Biophysics + Place: University of Lisbon + Date: Sep 2012 - Nov 2017 + Details: Specialised in data analysis + +Skills: + - Family: Programming + Items: + - Python + - HTML (including Jinja) + - Javascript + - CSS + - SASS + - SQL + - C# + - Bash + - MATLAB + - Family: Frameworks + Items: + - Django + - Flask + - Hugo + - React + - Family: Developer Tools + Items: + - Git + - Docker + - Jenkins + - AWS + - Family: Misc + Items: + - Adobe Tools + - LaTeX + +Languages: + - Name: Portuguese + Level: Native + - Name: English + Level: C2 + - Name: Spanish + Level: B1 + - Name: German + Level: B1 + +Diplomas: + - ISTQB Tester Certification (2019) + - English Cambridge CAE (2009) + +Interests: + - Bouldering + - Cooking + - Windsurfing + - Bossa Nova + - Design + - Languages diff --git a/layouts/index.html b/layouts/index.html index fa0fd5a..bbec6a2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,22 +4,23 @@
-

{{.Site.Data.content.BasicInfo.FirstName}} {{.Site.Data.content.BasicInfo.LastName}}

+ {{ $data := or (index .Site.Data .Site.Language.Lang).content .Site.Data.content }} +

{{ $data.BasicInfo.FirstName}} {{ $data.BasicInfo.LastName}}

- {{ partial "_profile.html" . }} - {{ partial "_experience.html" . }} - {{ partial "_education.html" . }} - {{ partial "_references.html" . }} + {{ partial "_profile.html" $data }} + {{ partial "_experience.html" $data }} + {{ partial "_education.html" $data }} + {{ partial "_references.html" $data }}
- {{ partial "_avatar.html" . }} - {{ partial "_contacts.html" . }} - {{ partial "_skills.html" . }} - {{ partial "_languages.html" . }} - {{ partial "_diplomas.html" . }} - {{ partial "_interests.html" . }} + {{ partial "_avatar.html" $data }} + {{ partial "_contacts.html" $data }} + {{ partial "_skills.html" $data }} + {{ partial "_languages.html" $data }} + {{ partial "_diplomas.html" $data }} + {{ partial "_interests.html" $data }}
diff --git a/layouts/partials/_avatar.html b/layouts/partials/_avatar.html index b903168..403d962 100644 --- a/layouts/partials/_avatar.html +++ b/layouts/partials/_avatar.html @@ -1,7 +1,7 @@ -{{ if .Site.Data.content.BasicInfo.Photo }} +{{ if .BasicInfo.Photo }}
- photo of me + photo of me
{{ end }} \ No newline at end of file diff --git a/layouts/partials/_contacts.html b/layouts/partials/_contacts.html index 8089052..57d1159 100644 --- a/layouts/partials/_contacts.html +++ b/layouts/partials/_contacts.html @@ -1,7 +1,7 @@ -{{ if .Site.Data.content.BasicInfo.Contacts }} +{{ if .BasicInfo.Contacts }}