Files
blog-eleventy-indiekit/_includes/components/homepage-section.njk
Ricardo 81ea22ac34 feat: add AI usage homepage section with stats and contribution graph
Full-width section for homepage builder showing 4-column stats grid,
level breakdown pills, AI-involved post-graph, and link to /ai/ page.

Confab-Link: http://localhost:8080/sessions/edb1b7b0-da66-4486-bd9c-d1cfa7553b88
2026-03-06 12:35:40 +01:00

59 lines
3.1 KiB
Plaintext

{# Homepage Section Dispatcher — maps section.type to the right partial #}
{% if section.type == "featured-posts" %}
{% include "components/sections/featured-posts.njk" %}
{% elif 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 %}
{% elif section.type == "posting-activity" %}
{% include "components/sections/posting-activity.njk" ignore missing %}
{% elif section.type == "ai-usage" %}
{% include "components/sections/ai-usage.njk" ignore missing %}
{% else %}
<!-- Unknown section type: {{ section.type }} -->
{% endif %}