mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 11:12:54 +02:00
fix: accessibility issues with footer links, optimize footer link handling logic
This commit is contained in:
parent
a27cdcb7f9
commit
96fba2d473
8 changed files with 52 additions and 44 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue