From 1cc23ba23a0edb3972f76d7d6d7b31345d79b84e Mon Sep 17 00:00:00 2001 From: Sundar Gurumurthy <76529072+neuroconvergent@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:37:45 +0000 Subject: [PATCH] fix: CV rendering failure without Volunteer field (#3479) Fixes #3478 --- _layouts/cv.liquid | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 %}