feat: show npm provile
This commit is contained in:
parent
5621ea7a7d
commit
460632ac73
2 changed files with 10 additions and 4 deletions
|
@ -3,6 +3,7 @@ import Icon from "astro-icon";
|
||||||
export type Link = {
|
export type Link = {
|
||||||
url: string;
|
url: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
|
set?: string;
|
||||||
text?: string;
|
text?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,7 +28,7 @@ if (Astro.url.pathname !== "/") {
|
||||||
.filter((link) => link.url !== "")
|
.filter((link) => link.url !== "")
|
||||||
.map((link) => (
|
.map((link) => (
|
||||||
<a href={link.url}>
|
<a href={link.url}>
|
||||||
<Icon pack="mdi" name={link.icon} /> {link.text ?? link.icon}
|
<Icon pack={link.set ?? "mdi"} name={link.icon} /> {link.text ?? link.icon}
|
||||||
</a>
|
</a>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,10 +23,15 @@ const links: Link[] = [
|
||||||
url: "https://ayco.io/gh/",
|
url: "https://ayco.io/gh/",
|
||||||
icon: "github",
|
icon: "github",
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// url: "https://codepen.io/ayoayco-the-styleful",
|
||||||
|
// icon: "codepen",
|
||||||
|
// text: "pens"
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
url: "https://codepen.io/ayoayco-the-styleful",
|
url: "https://www.npmjs.com/~aayco",
|
||||||
icon: "codepen",
|
icon: "npm",
|
||||||
text: "pens"
|
set: "gg"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in a new issue