fix: accessibility issues with footer links, optimize footer link handling logic

This commit is contained in:
radishzzz 2025-05-19 00:58:53 +01:00
parent a27cdcb7f9
commit 96fba2d473
8 changed files with 52 additions and 44 deletions

View file

@ -16,7 +16,15 @@ const links = socialLinks.map((link) => {
if (link.name === 'RSS') {
return {
...link,
url: currentLang === defaultLocale ? link.url : `/${currentLang}${link.url}`,
url: currentLang === defaultLocale
? link.url
: `/${currentLang}${link.url}`,
}
}
if (link.name === 'Email') {
return {
...link,
url: `mailto:${link.url}`,
}
}
return link

View file

@ -141,16 +141,16 @@ export const themeConfig: ThemeConfig = {
url: 'https://github.com/radishzzz/astro-theme-retypeset',
},
{
name: 'X',
url: 'https://x.com/radishzz_',
},
name: 'Email',
url: 'email@radishzz.cc',
}
// {
// name: 'Email',
// url: 'https://example@gmail.com',
// }
// name: 'X',
// url: 'https://x.com/radishzz_',
// },
],
// year of website start
startYear: 2024,
startYear: 2025,
},
// FOOTER SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END

View file

@ -165,13 +165,13 @@ footer: {
url: 'https://github.com/radishzzz/astro-theme-retypeset',
},
{
name: 'X',
url: 'https://x.com/radishzz_',
},
name: 'Email',
url: 'email@radishzz.cc',
}
// {
// name: 'Email',
// url: 'https://example@gmail.com',
// }
// name: 'X',
// url: 'https://x.com/radishzz_',
// },
]
// year of website start
startYear: 2024

View file

@ -165,13 +165,13 @@ footer: {
url: 'https://github.com/radishzzz/astro-theme-retypeset',
},
{
name: 'X',
url: 'https://x.com/radishzz_',
},
name: 'Email',
url: 'email@radishzz.cc',
}
// {
// name: 'Email',
// url: 'https://example@gmail.com',
// }
// name: 'X',
// url: 'https://x.com/radishzz_',
// },
]
// año de inicio del sitio web
startYear: 2024

View file

@ -165,13 +165,13 @@ footer: {
url: 'https://github.com/radishzzz/astro-theme-retypeset',
},
{
name: 'X',
url: 'https://x.com/radishzz_',
},
name: 'Email',
url: 'email@radishzz.cc',
}
// {
// name: 'Email',
// url: 'https://example@gmail.com',
// }
// name: 'X',
// url: 'https://x.com/radishzz_',
// },
]
// サイト開始年
startYear: 2024

View file

@ -165,13 +165,13 @@ footer: {
url: 'https://github.com/radishzzz/astro-theme-retypeset',
},
{
name: 'X',
url: 'https://x.com/radishzz_',
},
name: 'Email',
url: 'email@radishzz.cc',
}
// {
// name: 'Email',
// url: 'https://example@gmail.com',
// }
// name: 'X',
// url: 'https://x.com/radishzz_',
// },
]
// год начала работы веб-сайта
startYear: 2024

View file

@ -165,13 +165,13 @@ footer: {
url: 'https://github.com/radishzzz/astro-theme-retypeset',
},
{
name: 'X',
url: 'https://x.com/radishzz_',
},
name: 'Email',
url: 'email@radishzz.cc',
}
// {
// name: 'Email',
// url: 'https://example@gmail.com',
// }
// name: 'X',
// url: 'https://x.com/radishzz_',
// },
]
// 建站年份
startYear: 2024

View file

@ -165,13 +165,13 @@ footer: {
url: 'https://github.com/radishzzz/astro-theme-retypeset',
},
{
name: 'X',
url: 'https://x.com/radishzz_',
},
name: 'Email',
url: 'email@radishzz.cc',
}
// {
// name: 'Email',
// url: 'https://example@gmail.com',
// }
// name: 'X',
// url: 'https://x.com/radishzz_',
// },
]
// 建站年份
startYear: 2024