fix mobile links

This commit is contained in:
tree🌴 2024-01-25 22:11:29 +01:00
parent 83c1c1d449
commit 326d56465f
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"name": "Web3Privacy Now",
"links": {
"ocs": "https://docs.web3privacy.info/",
"docs": "https://docs.web3privacy.info/",
"manifesto": "https://docs.web3privacy.info/manifesto",
"github": "https://github.com/web3privacy",
"twitter": "https://twitter.com/web3privacy",

View file

@ -42,7 +42,7 @@ import cfonts from 'cfonts';
<div class="w-full">
{config.header.menu.map((menuItem) => (
<div class="uppercase w-full">
<a href={menuItem.url || core.links} class="inline-block hover:underline px-4 py-2" class:list={[menuItem.url?.match(/^http/) ? "external" : "", Astro.url.pathname === menuItem.url ? "text-white" : ""]}>{menuItem.name}</a>
<a href={core.links[menuItem.link] || menuItem.url} class="inline-block hover:underline px-4 py-2" class:list={[menuItem.url?.match(/^http/) ? "external" : "", Astro.url.pathname === menuItem.url ? "text-white" : ""]}>{menuItem.name}</a>
</div>
))}
</div>