diff --git a/_layouts/cv.liquid b/_layouts/cv.liquid index e60d3e9..0904dc2 100644 --- a/_layouts/cv.liquid +++ b/_layouts/cv.liquid @@ -122,7 +122,10 @@ layout: default {% comment %} First, combine Experience and Volunteer entries {% endcomment %} - {% assign combined_experience = cv.sections.Experience | concat: cv.sections.Volunteer %} + {% assign empty_array = '' | split: ',' %} + {% assign exp = cv.sections.Experience | default: empty_array %} + {% assign vol = cv.sections.Volunteer | default: empty_array %} + {% assign combined_experience = exp | concat: vol %} {% if combined_experience.size > 0 %}
@@ -258,7 +261,10 @@ layout: default {% endif %} - {% assign combined_experience = site.data.resume.work | concat: site.data.resume.volunteer %} + {% assign empty_array = '' | split: ',' %} + {% assign work = site.data.resume.work | default: empty_array %} + {% assign vol = site.data.resume.volunteer | default: empty_array %} + {% assign combined_experience = work | concat: vol %} {% if combined_experience.size > 0 %}