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 = {
|
||||
url: string;
|
||||
icon: string;
|
||||
set?: string;
|
||||
text?: string;
|
||||
};
|
||||
|
||||
|
@ -27,7 +28,7 @@ if (Astro.url.pathname !== "/") {
|
|||
.filter((link) => link.url !== "")
|
||||
.map((link) => (
|
||||
<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>
|
||||
))
|
||||
}
|
||||
|
|
|
@ -23,10 +23,15 @@ const links: Link[] = [
|
|||
url: "https://ayco.io/gh/",
|
||||
icon: "github",
|
||||
},
|
||||
// {
|
||||
// url: "https://codepen.io/ayoayco-the-styleful",
|
||||
// icon: "codepen",
|
||||
// text: "pens"
|
||||
// },
|
||||
{
|
||||
url: "https://codepen.io/ayoayco-the-styleful",
|
||||
icon: "codepen",
|
||||
text: "pens"
|
||||
url: "https://www.npmjs.com/~aayco",
|
||||
icon: "npm",
|
||||
set: "gg"
|
||||
}
|
||||
];
|
||||
---
|
||||
|
|
Loading…
Reference in a new issue