diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html index 2994fc5..13037a8 100644 --- a/layouts/partials/sections/education-alt.html +++ b/layouts/partials/sections/education-alt.html @@ -53,6 +53,7 @@ {{ end }} {{ if .takenCourses }} + {{ $showFirst := .takenCourses.showFirst | default 2 }}
{{ i18n "taken_courses" }}
{{ if .takenCourses.showGrades }} @@ -65,7 +66,7 @@ {{ range $index,$course := .takenCourses.courses }} - + {{ $course.name }} {{ if not $hideScale }}{{ $course.outOf }}{{ end }} {{ $course.achieved }} @@ -76,11 +77,11 @@ {{ else }} {{ end }} - {{ if gt (len .takenCourses.courses) 2 }} + {{ if gt (len .takenCourses.courses) $showFirst }}