From 3345c1199ac3ed8c1a4f2dd477c66f793b7b65c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Mon, 22 Jan 2024 17:30:24 +0100 Subject: [PATCH] handle localizations in socials --- layouts/partials/footer/social.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/footer/social.html b/layouts/partials/footer/social.html index 1d0d7ac8..f53b805d 100644 --- a/layouts/partials/footer/social.html +++ b/layouts/partials/footer/social.html @@ -9,8 +9,8 @@ )}} {{ end }} -{{ with site.Data.website.social }} - {{ $site_social_links := index . }} +{{ with (or site.Params.social site.Data.website.social) }} + {{ $site_social_links := . }} {{ if $site_social_links }} <ul class="footer-social site-links"> {{ with $site_social_links.email}} @@ -35,7 +35,7 @@ {{ end}} {{ with $site_social_links.github}} <li class="github"> - <a href="{{ . }}" rel="noreferrer" title="Github" target="_blank">Github</a> + <a href="{{ . }}" rel="noreferrer" title="Github" target="_blank">GitHub</a> </li> {{ end}} {{ with $site_social_links.linkedin}} -- GitLab