Files
indiekit-blog/_includes/components/homepage-section.njk
Ricardo 3bf0e78f74 feat: add filtered section templates for work/personal type distinction
Add thin-wrapper templates for work/personal filtering of CV sections:
- 8 new templates: cv-{experience,education,skills,interests}-{personal,work}.njk
- cv-languages.njk: standalone languages section (split from education)
- homepage-section.njk: 9 new routes for filtered variants
- cv.njk: uses work-only variants for the /cv/ page
- Base templates: filterType support in experience, education, skills, interests
- _data/cv.js: skillTypes and interestTypes fallback fields
2026-02-20 13:11:37 +01:00

53 lines
2.8 KiB
Plaintext

{# Homepage Section Dispatcher — maps section.type to the right partial #}
{% if section.type == "recent-posts" %}
{% include "components/sections/recent-posts.njk" %}
{% elif section.type == "custom-html" %}
{% include "components/sections/custom-html.njk" %}
{% elif section.type == "cv-experience" %}
{% include "components/sections/cv-experience.njk" ignore missing %}
{% elif section.type == "cv-projects" %}
{% include "components/sections/cv-projects.njk" ignore missing %}
{% elif section.type == "cv-projects-personal" %}
{% include "components/sections/cv-projects-personal.njk" ignore missing %}
{% elif section.type == "cv-projects-work" %}
{% include "components/sections/cv-projects-work.njk" ignore missing %}
{% elif section.type == "cv-skills" %}
{% include "components/sections/cv-skills.njk" ignore missing %}
{% elif section.type == "cv-education" %}
{% include "components/sections/cv-education.njk" ignore missing %}
{% elif section.type == "cv-interests" %}
{% include "components/sections/cv-interests.njk" ignore missing %}
{% elif section.type == "cv-experience-personal" %}
{% include "components/sections/cv-experience-personal.njk" ignore missing %}
{% elif section.type == "cv-experience-work" %}
{% include "components/sections/cv-experience-work.njk" ignore missing %}
{% elif section.type == "cv-education-personal" %}
{% include "components/sections/cv-education-personal.njk" ignore missing %}
{% elif section.type == "cv-education-work" %}
{% include "components/sections/cv-education-work.njk" ignore missing %}
{% elif section.type == "cv-skills-personal" %}
{% include "components/sections/cv-skills-personal.njk" ignore missing %}
{% elif section.type == "cv-skills-work" %}
{% include "components/sections/cv-skills-work.njk" ignore missing %}
{% elif section.type == "cv-interests-personal" %}
{% include "components/sections/cv-interests-personal.njk" ignore missing %}
{% elif section.type == "cv-interests-work" %}
{% include "components/sections/cv-interests-work.njk" ignore missing %}
{% elif section.type == "cv-languages" %}
{% include "components/sections/cv-languages.njk" ignore missing %}
{% elif section.type == "blogroll" %}
{% include "components/sections/blogroll.njk" ignore missing %}
{% elif section.type == "podroll" %}
{% include "components/sections/podroll.njk" ignore missing %}
{% elif section.type == "github-activity" %}
{% include "components/sections/github-activity.njk" ignore missing %}
{% elif section.type == "youtube" %}
{% include "components/sections/youtube.njk" ignore missing %}
{% elif section.type == "funkwhale" %}
{% include "components/sections/funkwhale.njk" ignore missing %}
{% elif section.type == "lastfm" %}
{% include "components/sections/lastfm.njk" ignore missing %}
{% else %}
<!-- Unknown section type: {{ section.type }} -->
{% endif %}