From 0b0d14a6be2261bf682cb1e40010e3f910f210bf Mon Sep 17 00:00:00 2001 From: BernatBC Date: Sat, 10 Feb 2024 18:17:10 +0100 Subject: [PATCH 1/2] Add custom subsections in education --- layouts/partials/sections/education-alt.html | 7 +++++++ layouts/partials/sections/education.html | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html index b6996dfe6..ca60aa4a8 100644 --- a/layouts/partials/sections/education-alt.html +++ b/layouts/partials/sections/education-alt.html @@ -106,6 +106,13 @@
{{ i18n "extracurricular_activities" }}:
{{ end }} + {{ if .custonSections }} +
+ {{ range .custonSections }} +
{{ .name }}: {{ .content }}
+ {{ end }} +
+ {{ end }} diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index 6a7fb74f2..0b522185f 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -106,6 +106,13 @@
{{ i18n "extracurricular_activities"}}:
{{ end }} + {{ if .custonSections }} +
+ {{ range .custonSections }} +
{{ .name }}: {{ .content }}
+ {{ end }} +
+ {{ end }} From d3f0f62748feaeaddf160ca235fdef1ed81250d0 Mon Sep 17 00:00:00 2001 From: BernatBC Date: Mon, 12 Feb 2024 17:58:02 +0100 Subject: [PATCH 2/2] Apply requested changes --- assets/styles/sections/education.scss | 6 ++++++ layouts/partials/sections/education-alt.html | 5 +++-- layouts/partials/sections/education.html | 5 +++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/assets/styles/sections/education.scss b/assets/styles/sections/education.scss index 75e39af0c..81888445e 100644 --- a/assets/styles/sections/education.scss +++ b/assets/styles/sections/education.scss @@ -129,6 +129,12 @@ margin-bottom: 0; } } + + .custom-section { + .custom-content { + padding-bottom: 0.5em; + } + } } } } diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html index ca60aa4a8..15a328d76 100644 --- a/layouts/partials/sections/education-alt.html +++ b/layouts/partials/sections/education-alt.html @@ -107,9 +107,10 @@
{{ i18n "extracurricular_activities" }}:
{{ end }} {{ if .custonSections }} -
+
{{ range .custonSections }} -
{{ .name }}: {{ .content }}
+
{{ .name }}:
+
{{ .content | markdownify }}
{{ end }}
{{ end }} diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index 0b522185f..ac238cec6 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -107,9 +107,10 @@
{{ i18n "extracurricular_activities"}}:
{{ end }} {{ if .custonSections }} -
+
{{ range .custonSections }} -
{{ .name }}: {{ .content }}
+
{{ .name }}:
+
{{ .content | markdownify }}
{{ end }}
{{ end }}