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 %}