From 73c786b1c22b01f18db46524a785c21576dd0b78 Mon Sep 17 00:00:00 2001 From: Emruz Hossain Date: Sat, 2 Jan 2021 22:29:38 +0600 Subject: Add education section (#168) * Add education section * Add education-alt section * Add translations --- layouts/index.html | 1 + layouts/partials/sections/education-alt.html | 110 +++++++++++++++++++++++++++ layouts/partials/sections/education.html | 101 ++++++++++++++++++++++++ 3 files changed, 212 insertions(+) create mode 100644 layouts/partials/sections/education-alt.html create mode 100644 layouts/partials/sections/education.html (limited to 'layouts') diff --git a/layouts/index.html b/layouts/index.html index 17cab83..72c9e4b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,6 +19,7 @@ + diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html new file mode 100644 index 0000000..7d9597f --- /dev/null +++ b/layouts/partials/sections/education-alt.html @@ -0,0 +1,110 @@ +{{ $sectionID := replace (lower .section.name) " " "-" }} +{{ if .section.id }} +{{ $sectionID = .section.id }} +{{ end }} + +
+ {{ if not (.section.hideTitle) }} +

{{ .section.name }}

+ {{ end }} + +
+ + + {{ range .degrees}} + + + + + + + + {{ end }} + +
+
+
+ +
+
+
+
+
+
+
+ {{ if .institution.url }} +
{{ .institution.name }}
+ {{ else }} +
{{ .institution.name }}
+ {{ end }} +
+
{{ .timeframe }}
+
+
{{ .name }}
+ {{ if .grade }} +
{{ .grade.scale }}: {{ .grade.achieved }} {{ i18n "out_of" }} {{ .grade.outOf }}
+ {{ end }} + {{ if .publications }} +
+
{{i18n "publications"}}
+ +
+ {{ end }} + {{ if .takenCourses }} +
+
{{ i18n "taken_courses" }}
+ {{ if .takenCourses.showGrades }} + + + + + + + + {{ range $index,$course := .takenCourses.courses }} + + + + + + {{ end }} + +
{{ i18n "course_name" }}{{ i18n "total_credit" }}{{ i18n "obtained_credit" }}
{{ $course.name }}{{ $course.outOf }}{{ $course.achieved }}
+ {{ else }} +
    + {{ range $index,$course := .takenCourses.courses }} +
  • {{ $course.name }}
  • + {{ end }} +
+ {{ end }} + {{ if gt (len .takenCourses.courses) 2 }} + + {{ end }} +
+ {{ end }} + {{ if .extracurricularActivities }} +
+
{{ i18n "extracurricular_activities" }}
+
    + {{ range .extracurricularActivities }} +
  • {{ . }}
  • + {{ end }} +
+
+ {{ 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..b6b5aee --- /dev/null +++ b/layouts/partials/sections/education.html @@ -0,0 +1,101 @@ +{{ $sectionID := replace (lower .section.name) " " "-" }} +{{ if .section.id }} +{{ $sectionID = .section.id }} +{{ end }} + +
+ {{ if not (.section.hideTitle) }} +

{{ .section.name }}

+ {{ end }} + +
+ + + {{ range .degrees}} + + + + + + {{ end }} + +
+
+
+ +
+
+
+
+
+
+
+ {{ if .institution.url }} +
{{ .institution.name }}
+ {{ else }} +
{{ .institution.name }}
+ {{ end }} +
+
{{ .timeframe }}
+
+
{{ .name }}
+ {{ if .grade }} +
{{ .grade.scale }}: {{ .grade.achieved }} {{ i18n "out_of"}} {{ .grade.outOf }}
+ {{ end }} + {{ if .publications }} +
+
{{ i18n "publications"}}
+ +
+ {{ end }} + {{ if .takenCourses }} +
+
{{ i18n "taken_courses"}}
+ {{ if .takenCourses.showGrades }} + + + + + + + + {{ range $index,$course := .takenCourses.courses }} + + + + + + {{ end }} + +
{{ i18n "course_name"}}{{ i18n "total_credit"}}{{ i18n "obtained_credit"}}
{{ $course.name }}{{ $course.outOf }}{{ $course.achieved }}
+ {{ else }} +
    + {{ range $index,$course := .takenCourses.courses }} +
  • {{ $course.name }}
  • + {{ end }} +
+ {{ end }} + {{ if gt (len .takenCourses.courses ) 2 }} + + {{ end }} +
+ {{ end }} + {{ if .extracurricularActivities }} +
+
{{ i18n "extracurricular_activities"}}
+
    + {{ range .extracurricularActivities }} +
  • {{ . }}
  • + {{ end }} +
+
+ {{ end }} +
+
+
+
\ No newline at end of file -- cgit v1.2.3