From 54ecbb65c432558fc4a2df75f18aab6a16805f87 Mon Sep 17 00:00:00 2001 From: gurusabarish Date: Mon, 28 Feb 2022 19:28:45 +0530 Subject: Added education in home --- exampleSite/config.yaml | 47 +++++++++++++++++ layouts/_default/baseof.html | 2 +- layouts/index.html | 1 + layouts/partials/scripts.html | 16 +++++- layouts/partials/sections/education.html | 64 +++++++++++++++++++++++ layouts/partials/sections/experience.html | 45 ++-------------- layouts/partials/sections/header.html | 12 ++++- layouts/partials/sections/hero/social.html | 30 ++++++----- static/css/index.css | 84 ++++++++++++++++++++++++++++-- 9 files changed, 240 insertions(+), 61 deletions(-) create mode 100644 layouts/partials/sections/education.html diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 98585d6..9795c30 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -180,6 +180,53 @@ params: companyUrl: "https://example.com" date: "Feb 2016 - Mar 2017" content: "I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city." + + # Education + education: + enable: true + # index: true + items: + - title: "Master of Business Administration" + school: + name: "University of California, Berkeley" + url: "https://example.org" + date: "2013 - 2015" + GPA: "3.8 out of 5.0" + content: |- + Extracurricular Activities + - Lorem ipsum dolor sit amet consectetur adipisicing elit. + - Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique. + - Lorem ipsum dolor sit amet consectetur adipisicing elit. + - Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique. + - title: "Bachelor of Science in Computer Science" + school: + name: "Massachusetts Institute of Technology" + url: "https://example.org" + date: "2009 - 2013" + GPA: "3.9 out of 5.0" + content: |- + I Publiced two papers in the ACM SIGCHI Conference on Artificial Intelligence. + - [Fast and Accurate Object Detection with a Single Convolutional Neural Network](https://example.com) + - Face mask detection using a single convolutional neural network. + + Extracurricular Activities + - Lorem ipsum dolor sit amet consectetur adipisicing elit. + - Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique. + - Lorem ipsum dolor sit amet consectetur adipisicing elit. + - Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique. + featuredLink: + enable: true + name: "My academic record" + url: "https://example.com" + - title: "High School" + school: + name: "Thomas Jefferson High School for Science and Technology." + url: "https://example.org" + GPA: "4.2 out of 5.0" + featuredLink: + enable: true + name: "My academic record" + url: "https://example.com" # Achievements achievements: diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5540c38..0e75fb7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,7 +9,7 @@ - + diff --git a/layouts/index.html b/layouts/index.html index 9aec77f..5806a58 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -15,6 +15,7 @@ {{- partial "sections/hero/index.html" . -}} {{- partial "sections/about.html" . -}} {{- partial "sections/experience.html" . -}} +{{- partial "sections/education.html" . -}} {{- partial "sections/projects.html" . -}} {{- partial "sections/achievements.html" . -}} {{- partial "sections/contact.html" . -}} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 15238bd..87016fd 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -16,4 +16,18 @@ }) -{{- end }} \ No newline at end of file +{{- end }} + + \ No newline at end of file diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html new file mode 100644 index 0000000..7b0b5b9 --- /dev/null +++ b/layouts/partials/sections/education.html @@ -0,0 +1,64 @@ +{{ if .Site.Params.education.enable | default false }} +
+
+

Education

+
+ {{ $indexMenu := .Site.Params.education.index }} + {{ range $index, $element := .Site.Params.education.items }} +
+
+ {{ if $indexMenu }} +
+
+ + {{ add $index 1 }} + +
+
+ {{ end }} + +
+
+
+
+ {{ .date }} +
+
{{ .title }}
+ + {{ if .school.url }} + +
+ {{ .school.name }} +
+
+ {{ else }} + {{ .school.name }} + {{ end }} + +
+ GPA: + + {{ .GPA }} + +
+
+ {{ .content | markdownify}} +
+ + {{ if .featuredLink.enable }} + + {{ end }} +
+
+
+
+
+ {{ end }} +
+
+
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/sections/experience.html b/layouts/partials/sections/experience.html index 894e8f7..c64c490 100644 --- a/layouts/partials/sections/experience.html +++ b/layouts/partials/sections/experience.html @@ -1,3 +1,4 @@ +{{ if .Site.Params.experience.enable | default false }}

Experience

@@ -57,6 +58,7 @@ {{ if .info.enable | default true }} {{ end }} {{ end }} - -
-
\ No newline at end of file + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/sections/header.html b/layouts/partials/sections/header.html index 09fabe5..cea7ed8 100644 --- a/layouts/partials/sections/header.html +++ b/layouts/partials/sections/header.html @@ -58,14 +58,22 @@ {{ end }} - {{ if not (.Site.Params.navbar.menus.disableExperience | default false) }} + {{ + if and + (.Site.Params.experience.enable | default false) + (not (.Site.Params.navbar.menus.disableExperience | default false)) + }} {{ end }} - {{ if not (.Site.Params.navbar.menus.disableEducation | default false) }} + {{ + if and + (.Site.Params.education.enable | default false) + (not (.Site.Params.navbar.menus.disableEducation | default false)) + }}