{# CV Interests Section - interests grouped by category Data fetched from /cv/data.json via homepage plugin Each family gets a distinct color via cycling palette #} {% if cv and cv.interests and (cv.interests | dictsort | length) %}

{{ section.config.title or "Interests" }}

{% for category, items in cv.interests %} {% if not filterType or (cv.interestTypes and cv.interestTypes[category] == filterType) or not cv.interestTypes or not cv.interestTypes[category] %} {# Cycle through 8 distinct colors per family using loop.index0 #} {% set ci = loop.index0 % 8 %}

{{ category }}

{% for interest in items %} {% if ci == 0 %} {% elif ci == 1 %} {% elif ci == 2 %} {% elif ci == 3 %} {% elif ci == 4 %} {% elif ci == 5 %} {% elif ci == 6 %} {% elif ci == 7 %} {% endif %} {{ interest }} {% endfor %}
{% endif %} {% endfor %}
{% endif %}