diff --git a/_includes/components/sections/cv-education.njk b/_includes/components/sections/cv-education.njk index 052fb21..da3e278 100644 --- a/_includes/components/sections/cv-education.njk +++ b/_includes/components/sections/cv-education.njk @@ -15,7 +15,7 @@ {% if hasEducation %}
{% for item in cv.education %} - {% if not filterType or item.educationType == filterType or (filterType == "personal" and not item.educationType) %} + {% if not filterType or item.educationType == filterType or not item.educationType %}

{{ item.degree }}

diff --git a/_includes/components/sections/cv-experience.njk b/_includes/components/sections/cv-experience.njk index 9d7bf3d..ece0cf7 100644 --- a/_includes/components/sections/cv-experience.njk +++ b/_includes/components/sections/cv-experience.njk @@ -15,7 +15,7 @@

{% for item in cv.experience | head(maxItems) %} - {% if not filterType or item.experienceType == filterType or (filterType == "personal" and not item.experienceType) %} + {% if not filterType or item.experienceType == filterType or not item.experienceType %}

{{ item.title }}

diff --git a/_includes/components/sections/cv-interests.njk b/_includes/components/sections/cv-interests.njk index 459e737..84467e5 100644 --- a/_includes/components/sections/cv-interests.njk +++ b/_includes/components/sections/cv-interests.njk @@ -11,7 +11,7 @@
{% for interest in cv.interests %} - {% if not filterType or (cv.interestTypes and cv.interestTypes[interest] == filterType) or (filterType == "personal" and (not cv.interestTypes or not cv.interestTypes[interest])) %} + {% if not filterType or (cv.interestTypes and cv.interestTypes[interest] == filterType) or not cv.interestTypes or not cv.interestTypes[interest] %} {{ interest }} diff --git a/_includes/components/sections/cv-skills.njk b/_includes/components/sections/cv-skills.njk index 49712c7..50e1d13 100644 --- a/_includes/components/sections/cv-skills.njk +++ b/_includes/components/sections/cv-skills.njk @@ -11,7 +11,7 @@
{% for category, items in cv.skills | dictsort %} - {% if not filterType or (cv.skillTypes and cv.skillTypes[category] == filterType) or (filterType == "personal" and (not cv.skillTypes or not cv.skillTypes[category])) %} + {% if not filterType or (cv.skillTypes and cv.skillTypes[category] == filterType) or not cv.skillTypes or not cv.skillTypes[category] %}

{{ category }} diff --git a/cv.njk b/cv.njk index 67065e0..2c4f7fb 100644 --- a/cv.njk +++ b/cv.njk @@ -10,7 +10,7 @@ pagefindIgnore: true {% set hasCvData = (cv.experience and cv.experience.length) or (cv.projects and cv.projects.length) or - (cv.skills and (cv.skills | dictsort | length)) %} + (cv.skills and ((cv.skills or {}) | dictsort | length)) %} {% if hasCvData %}