From 406a12cfebb06b72b4438505e4ec776b7fa41aab Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sun, 8 Mar 2026 14:50:44 +0100 Subject: [PATCH] fix(home): render all social icons via shared macro --- _includes/layouts/home.njk | 11 ++--------- theme/_includes/layouts/home.njk | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/_includes/layouts/home.njk b/_includes/layouts/home.njk index cdab261..52b25b9 100644 --- a/_includes/layouts/home.njk +++ b/_includes/layouts/home.njk @@ -42,6 +42,7 @@ withSidebar: true {% endif %} {# Social Links #} + {% from "components/social-icon.njk" import socialIcon, socialIconColorClass %}
{% for link in site.social %} - {% if link.icon == "github" %} - - {% elif link.icon == "linkedin" %} - - {% elif link.icon == "bluesky" %} - - {% elif link.icon == "mastodon" %} - - {% endif %} + {{ socialIcon(link.icon, "w-5 h-5") }} {{ link.name }} {% endfor %} diff --git a/theme/_includes/layouts/home.njk b/theme/_includes/layouts/home.njk index 32b0793..ec0b06b 100644 --- a/theme/_includes/layouts/home.njk +++ b/theme/_includes/layouts/home.njk @@ -40,6 +40,7 @@ withSidebar: true {% endif %} {# Social Links #} + {% from "components/social-icon.njk" import socialIcon, socialIconColorClass %}
{% for link in site.social %} - {% if link.icon == "github" %} - - {% elif link.icon == "linkedin" %} - - {% elif link.icon == "bluesky" %} - - {% elif link.icon == "mastodon" %} - - {% endif %} + {{ socialIcon(link.icon, "w-5 h-5") }} {{ link.name }} {% endfor %}